public-method Questions

4

Solved

I wrote this method: public def getXScaleFactor(panelWidth: Int): Double = { return (panelWidth / (samplesContainer[0].length.asInstanceOf[Double])) } and I have problems with compilation: [er...
Understudy asked 3/6, 2011 at 17:52

3

Solved

i have a project. c# .net I would like to get names of all public function in all public classes in the project. is there any tool or can i write a program that take the project dll or even the pr...
Jabe asked 10/3, 2011 at 6:15

9

Solved

I would like to take an object and remove some methods from it. i.e. I have internally have an object with getter/setters on it and I want to give external users access to it. I don't want them t...
Gunrunning asked 20/2, 2011 at 15:51

1

I have to exclude a few of the public methods of a class from being included in javadocs. I tried Chris Nokleberg's ExcludeDoclet (sixlegs). But the doclet is giving a slight problem : If the other...
Caddaric asked 27/1, 2011 at 11:4

8

Solved

Is it possible to detect unused methods in a source tree using FindBugs? I see some posts on SO where users are claiming to do that, some others asking how to do this in FB and others where they cl...
Kittiekittiwake asked 18/1, 2011 at 6:32

4

Solved

I am trying to get access to Form1’s public method on another form Form2 as below. I have a textbox6 control on form1 and there is public method to bind it. But I want to bind it by form2 as below....
Budding asked 14/11, 2010 at 8:9

5

Solved

First of all please forgive me if its a really dumb question, I am just trying to learn this language to its core. I am reading Effective Java and the very first chapter talks about Static factory ...
Regen asked 2/11, 2010 at 15:51

4

Solved

What's the difference between a public static method and a public method? Why would you use a public static method?
Binominal asked 30/9, 2010 at 15:39

4

When we know that in java all classes by default extends Object class, so why there are methods with public modifier where as protected would suffice the accessing of these methods from any class? ...
Clog asked 15/8, 2010 at 15:24

7

Solved

There are a lot of people out there against the use of "public/private" static methods. I have search around,with no luck, and tried to find anyone that advocates good use of static methods. Assu...
Leventhal asked 30/7, 2010 at 13:24

2

I've just read this article here: http://hamletdarcy.blogspot.com/2008/04/10-best-idea-inspections-youre-not.html, and the last bit in particular got me thinking about my code, specifically the adv...
Diedra asked 30/7, 2010 at 13:6

4

Solved

I have a timer in a windows service (.NET C#). I need to be able to change the elapsed value from an external program. If the timer is currently running, I need to be able to shorten the time elaps...
Convexity asked 8/12, 2009 at 22:15

2

I have a .Net(C#) solution. The solution contains bunch of projects. The projects were implemented not by me. It is not a framework, it means that I need to have amount of public methods/properties...
Picofarad asked 24/9, 2009 at 13:56

2

Solved

I am trying to achieve something like the following but dont know whats wrong: $.a = function() { // some logic here function abc(id) { alert('test'+id); } } $.a.abc('1'); I tried using th...
Prevent asked 30/7, 2009 at 6:37

8

Solved

If I have an abstract class and derived classes of that class, am I correct that, according to good and practical design practice, that the derived classes should not provide extra public methods (...
Miru asked 9/6, 2009 at 17:14

4

I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that I can download, plug-in that will detect public methods that aren't called from within ...
Halfon asked 16/9, 2008 at 11:54

© 2022 - 2024 — McMap. All rights reserved.