|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.util.StrongCollection
org.hyperic.util.StrongList
org.hyperic.util.StringList
public class StringList
StringCollection is a collection class that will only java.lang.String objects into the collection. StringCollection implements all of the methods of the java.util.Collection interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.hyperic.util.StrongList |
---|
StrongList.ListItr |
Nested classes/interfaces inherited from class org.hyperic.util.StrongCollection |
---|
StrongCollection.Itr |
Field Summary |
---|
Fields inherited from class org.hyperic.util.StrongCollection |
---|
CLASS_NOT_FOUND_MSG, m_aList |
Constructor Summary | |
---|---|
StringList()
Constructs a StringCollection class. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.String obj)
|
boolean |
add(java.lang.String obj)
|
boolean |
addAll(int index,
StringCollection c)
|
boolean |
addAll(StringCollection coll)
|
protected void |
checkCollection(java.util.Collection collection)
Checks whether a Collection object is of the type specified when constructing the StrongBase class and throws a ClassCastException if it is not. |
protected void |
checkObject(java.lang.Object obj)
Checks whether a object is of the type that the collection accepts and throws a ClassCastException if it is not. |
boolean |
contains(java.lang.String obj)
|
boolean |
containsAll(StringCollection coll)
|
protected java.lang.Class |
getCollectionClass()
Returns the collection Class. |
protected java.lang.Class |
getObjectClass()
Returns the object Class of the objects accepted by a Collection. |
int |
indexOf(java.lang.String obj)
|
protected void |
init(java.lang.Class coll,
java.lang.Class obj)
Initializes a StrongBase class. |
protected void |
init(java.lang.String coll,
java.lang.String obj)
Initializes a StrongBase class. |
protected boolean |
isValidCollection(java.util.Collection collection)
Returns whether a Collection object is of the type specified when constructing the StrongBase class. |
protected boolean |
isValidObject(java.lang.Object obj)
Returns whether an object is of the type that the collection accepts. |
int |
lastIndexOf(java.lang.String obj)
|
boolean |
remove(java.lang.String obj)
|
boolean |
removeAll(StringCollection coll)
|
boolean |
retainAll(StringCollection coll)
|
java.lang.Object |
set(int index,
java.lang.String obj)
|
java.lang.String[] |
toArray(java.lang.String[] a)
|
Methods inherited from class org.hyperic.util.StrongList |
---|
add, addAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList |
Methods inherited from class org.hyperic.util.StrongCollection |
---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, reverse, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
public StringList()
collection
- The java.lang.Class type of the subclassed collection.object
- The java.lang.Class type of the object this collection will accept.Method Detail |
---|
public boolean add(java.lang.String obj)
public void add(int index, java.lang.String obj)
public boolean addAll(StringCollection coll)
public boolean addAll(int index, StringCollection c)
public boolean contains(java.lang.String obj)
public boolean containsAll(StringCollection coll)
public int indexOf(java.lang.String obj)
public int lastIndexOf(java.lang.String obj)
public boolean remove(java.lang.String obj)
public boolean removeAll(StringCollection coll)
public boolean retainAll(StringCollection coll)
public java.lang.Object set(int index, java.lang.String obj)
public java.lang.String[] toArray(java.lang.String[] a)
protected void init(java.lang.Class coll, java.lang.Class obj)
c
- The java.lang.Class object of the collection class that will use
the StrongBase. The collection class must implement the
java.util.Collection interface or a sublcass of this interface.obj
- The java.lang.Class object of the class that the collection will
contain. The obj Class can be any type that can be implemented
in the Java language.Collection
protected void init(java.lang.String coll, java.lang.String obj) throws java.lang.ClassNotFoundException
c
- The java.lang.Class object of the collection class that will use
the StrongBase. The collection class must implement the
java.util.Collection interface or a sublcass of this interface.obj
- The java.lang.Class object of the class that the collection will
contain. The obj Class can be any type that can be implemented
in the Java language.
java.lang.ClassNotFoundException
Collection
protected void checkCollection(java.util.Collection collection)
collection
- The java.lang.Class object of the collection class that will use
the StrongBase. This methods throws a ClassCastException if the
paramater is not valid.ClassCastException
,
Collection
protected void checkObject(java.lang.Object obj)
obj
- The java.lang.Class object of the collection class that will use
the StrongBase. This methods throws a ClassCastException if the
paramater is not valid.ClassCastException
protected java.lang.Class getCollectionClass()
Class
protected java.lang.Class getObjectClass()
Class
protected boolean isValidCollection(java.util.Collection collection)
collection
- The java.lang.Class object of the collection class that will use
the StrongBase. This methods throws a ClassCastException if the
paramater is not valid.
Collection
protected boolean isValidObject(java.lang.Object obj)
obj
- The java.lang.Class object of the collection class that will use
the StrongBase.
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |