Java Doc for ClassList.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » rmi » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.rmi.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.rmi.common.ClassList

ClassList
final public class ClassList (Code)
Stores list of classes ( Class instances), making sure no duplicates are stored, and taking inheritance into account. The classes are stores in order they were added, so that no class in the list inherits any other class in the list. When each new class is added to the list, all its superclasses (or subclasses, if inverse flag was set in constructor) are removed from the list.
author:
   Vasily Zakharov
version:
   $Revision: 1.1.2.2 $



Constructor Summary
public  ClassList()
     Creates empty list, equivalent to ClassList.ClassList(boolean) ClassList(false) .
public  ClassList(boolean inverse)
     Creates empty list.
public  ClassList(Class[] classes)
     Creates list and all the elements from the specified array, equivalent to ClassList.ClassList(Class[],boolean) ClassList(Class[], false) .
public  ClassList(Class[] classes, boolean inverse)
     Creates list and all the elements from the specified array.
public  ClassList(Collection classes)
     Creates list and all the elements from the specified collection, equivalent to ClassList.ClassList(Collection,boolean) ClassList(Collection, false) .
public  ClassList(Collection classes, boolean inverse)
     Creates list and all the elements from the specified collection.
public  ClassList(ClassList classes)
     Creates list and all the elements from the specified list, equivalent to ClassList.ClassList(ClassList,boolean) ClassList(ClassList, false) .
public  ClassList(ClassList classes, boolean inverse)
     Creates list and all the elements from the specified list.

Method Summary
public  voidadd(Class cls)
     Adds the specified class to the end of the list.
public  voidaddAll(Class[] classes)
     Adds the all classes in the specified array to the list.
public  voidaddAll(Collection classes)
     Adds the all classes in the specified collection to the list.
public  voidaddAll(ClassList classes)
     Adds the all classes in the specified list to this list.
public  booleancontains(Class cls)
     Returns true if the list contains the specified class or any of its subclasses/superclasses (depending on ), false otherwise.
Parameters:
  cls - Class to check.
public  Iteratoriterator()
     Returns an iterator over the elements in this list in proper sequence.
public  voidremove(Class cls)
     Removes the specified class from the list.
public  StringtoString()
     Returns string representation of this list.


Constructor Detail
ClassList
public ClassList()(Code)
Creates empty list, equivalent to ClassList.ClassList(boolean) ClassList(false) .



ClassList
public ClassList(boolean inverse)(Code)
Creates empty list.
Parameters:
  inverse - Inverse flag, see .



ClassList
public ClassList(Class[] classes)(Code)
Creates list and all the elements from the specified array, equivalent to ClassList.ClassList(Class[],boolean) ClassList(Class[], false) .
Parameters:
  classes - Initial classes to put to the list.



ClassList
public ClassList(Class[] classes, boolean inverse)(Code)
Creates list and all the elements from the specified array.
Parameters:
  classes - Initial classes to put to the list.
Parameters:
  inverse - Inverse flag, see .



ClassList
public ClassList(Collection classes)(Code)
Creates list and all the elements from the specified collection, equivalent to ClassList.ClassList(Collection,boolean) ClassList(Collection, false) .
Parameters:
  classes - Initial classes to put to the list.



ClassList
public ClassList(Collection classes, boolean inverse)(Code)
Creates list and all the elements from the specified collection.
Parameters:
  classes - Initial classes to put to the list.
Parameters:
  inverse - Inverse flag, see .



ClassList
public ClassList(ClassList classes)(Code)
Creates list and all the elements from the specified list, equivalent to ClassList.ClassList(ClassList,boolean) ClassList(ClassList, false) .
Parameters:
  classes - Initial classes to put to the list.



ClassList
public ClassList(ClassList classes, boolean inverse)(Code)
Creates list and all the elements from the specified list.
Parameters:
  classes - Initial classes to put to the list.
Parameters:
  inverse - Inverse flag, see .




Method Detail
add
public void add(Class cls)(Code)
Adds the specified class to the end of the list. All its superclasses/subclasses (depending on ), if present, are removed. If class itself or any of its subclasses/superclasses is already present, nothing is done.
Parameters:
  cls - Class to add.



addAll
public void addAll(Class[] classes)(Code)
Adds the all classes in the specified array to the list. See ClassList.add(Class) for details.
Parameters:
  classes - Classes to add.



addAll
public void addAll(Collection classes)(Code)
Adds the all classes in the specified collection to the list. See ClassList.add(Class) for details.
Parameters:
  classes - Classes to add.



addAll
public void addAll(ClassList classes)(Code)
Adds the all classes in the specified list to this list. See ClassList.add(Class) for details.
Parameters:
  classes - Classes to add.



contains
public boolean contains(Class cls)(Code)
Returns true if the list contains the specified class or any of its subclasses/superclasses (depending on ), false otherwise.
Parameters:
  cls - Class to check. true if the list contains the specifiedclass or any of its subclasses/superclasses (dependingon ), falseotherwise.



iterator
public Iterator iterator()(Code)
Returns an iterator over the elements in this list in proper sequence. Iterator over the elements in this listin proper sequence.



remove
public void remove(Class cls)(Code)
Removes the specified class from the list. If class itself is not present, but its superclasses/subclasses (depending on ) are, they are removed.
Parameters:
  cls - Class to remove.



toString
public String toString()(Code)
Returns string representation of this list. String representation of this list.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.