inner-classes
Is it bad to use large inner classes in Java?
I have a lot of objects of type ContainedClass stored in an object of type ContainingClass. I need to access the container object from the inside objects. As of now I am doing this by passing a refere[详细]
2023-01-16 21:55 分类:问答GUI in java, private classes for listener not working
I am trying to make a GUI in Java, using something along these lines: public class GUIApp { DrawingPanel dp;[详细]
2023-01-16 09:09 分类:问答using comparators as embedded classes, the mother class (initialized in clone ) fields are not visible in the compare method
I have developed a server-to-server protocol called CCMN and different drop policies for the messages cached by each server. The PEERSIM simulator creates a template node with the CCMN protocol and th[详细]
2023-01-15 03:55 分类:问答Can I access an injected ejb from an inner class?
As i clearly mentioned above, I would be glad to开发者_StackOverflow hear your ideas about that. btw, some other ones say;[详细]
2023-01-12 23:01 分类:问答Inner Class. What is its purpose?
Can someone tell me what the purpose of having inner classes? I can think of a few but may be they are not good reasons for using inner classes. My re开发者_如何学编程asoning is that inner class is he[详细]
2023-01-10 11:02 分类:问答How do I test local inner class methods in java? [duplicate]
This question already has answers here: How do I test a class that has private methods, fields or inner classes?[详细]
2023-01-09 10:13 分类:问答How can an java event listener defined as an anonymous inner class use a variable from an enclosing class?
Here\'s the code: protected Dialog onCreateDialog(int id) { Dialog dialog = null; if (id == DIALOG_SEARCH) {[详细]
2023-01-08 06:44 分类:问答Is there a performance cost to static inner class?
Is there a performa开发者_Python百科nce cost to static inner class?Or should I just write the same static class as a non-inner class?If your business/data logic determines that a class should be an in[详细]
2023-01-08 04:11 分类:问答java.util.vector$1
enumeration e=vector.elements But vector class does not implement Enumeration, then how comes it is returning Enumeration Reference. But e is refering to java.util.vector$1 . 开发者_JS百科What is \"[详细]
2023-01-07 15:02 分类:问答Can't add a value to ArrayList because it's in an Inner Class?
I am writing a file that can parse rdf and owl files. I am using SAX and Java. My problem is on the line activeObject.add(file);[详细]
2023-01-07 11:15 分类:问答