|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.ArrayList | +--com.glaivestone.javax.util.AssociationArrayList
This class implements AssociationList
to provide
a list of Association
objects (key-value pairs).
List
,
Serialized FormConstructor Summary | |
AssociationArrayList()
|
Method Summary | |
boolean |
add(java.lang.Object key,
java.lang.Object value)
Creates an Association based on the given key-value pair and adds it to the list. |
AssociationIterator |
associationIterator()
Returns an iterator on the associations in this list. |
Association |
getAssociation(int index)
Returns the element at the specified position in this list. |
Association[] |
toAssociationArray()
Returns an array containing all of the elements in this list in the correct order. |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
public AssociationArrayList()
Method Detail |
public boolean add(java.lang.Object key, java.lang.Object value)
AssociationList
add
in interface AssociationList
List.add(Object)
public Association getAssociation(int index)
AssociationList
getAssociation
in interface AssociationList
public Association[] toAssociationArray()
toAssociationArray
in interface AssociationList
public AssociationIterator associationIterator()
AssociationList
associationIterator
in interface AssociationList
|
GFL 1.1 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |