|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
I subclass the JFC ArrayList and add on a bunch of convenience methods. I do not add any new core functionality to ArrayList.
| Method Summary | |
void |
addAll(java.util.Iterator i)
Append all of the elements in the iterator to this list. |
boolean |
addAssociation(java.lang.Object key,
java.lang.Object value)
Create a new FwAssocationIF with this key and value and add it to the list. |
boolean |
addInt(int value)
Append an integer to the list. |
boolean |
containsInt(int value)
Determine if this list contains this integer value. |
com.ds.fw.types.collections.FwCursorIteratorIF |
cursorIterator()
|
com.ds.fw.types.FwCodeIF |
findCode(java.lang.String s)
Get the first object in the list with a specific code. |
com.ds.fw.types.FwIdIF |
findId(java.lang.String s)
Get the first object that has the id. |
java.lang.Object |
getCopy()
I return a shallow copy. |
java.lang.Object |
getDeepCopy()
I return a deep copy. |
java.lang.Object |
getFirst()
Return the first element in the list. |
java.lang.String |
getFullDisplayString()
Return the toString() value of every element in the list, separated by commas. |
int |
getIntAt(int index)
Determine the integer value stored at this index. |
java.lang.Object |
getLast()
Return the last element in the list. |
java.lang.String |
getString(int i)
Get the element at i cast as a String. |
boolean |
hasCode(java.lang.String s)
Determine if any of the elements in the list have the specified code. |
boolean |
hasId(java.lang.String s)
Determine if any of the elements in the list have the specified id. |
boolean |
matches(java.util.Collection c)
Determine if two collections match: the collections contain the same set of elements but not necessarily in the same order. |
void |
removeDuplicateInstances()
If the list contains multiple elements that are the same instance (o1 == o2) then remove all occurances of the instances except for the first occurance. |
boolean |
removeInt(int value)
Find the first occurance of this integer. |
boolean |
reorderIds(java.util.List v)
Sort the list of objects by their ids. |
void |
replaceAll(java.util.Collection c)
Remove all elements from my list and then add all of the elements from c. |
void |
replaceAll(java.util.Iterator i)
Remove all elements from my list and then add all of the elements from the iterator. |
void |
reverse()
Reverse the order of the elements in the list. |
java.util.Iterator |
reverseIterator()
|
void |
setIntAt(int index,
int value)
Set the element at this index to be an integer value. |
void |
shuffle()
Reorder the elements of the list into a 'random' order. |
void |
sort()
Sort the elements in the list. |
void |
sort(java.util.Comparator c)
Sort all of the elements in this list using the Comparator. |
| 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 |
| Methods inherited from interface com.ds.fw.types.FwCopyableIF |
getClone, getCopy, postCopy |
| Methods inherited from interface com.ds.fw.types.FwDisplayableIF |
getClassName, getDisplayString, getDisplayStringFor, toString, toStringValue |
| Method Detail |
public java.lang.String getString(int i)
public java.lang.Object getFirst()
public java.lang.Object getLast()
public boolean addInt(int value)
public boolean removeInt(int value)
public boolean containsInt(int value)
public int getIntAt(int index)
public void setIntAt(int index,
int value)
public com.ds.fw.types.FwIdIF findId(java.lang.String s)
public com.ds.fw.types.FwCodeIF findCode(java.lang.String s)
public com.ds.fw.types.collections.FwCursorIteratorIF cursorIterator()
public java.util.Iterator reverseIterator()
public boolean hasId(java.lang.String s)
public boolean hasCode(java.lang.String s)
public boolean matches(java.util.Collection c)
public void reverse()
public void replaceAll(java.util.Collection c)
public void replaceAll(java.util.Iterator i)
public void addAll(java.util.Iterator i)
public void sort()
public void sort(java.util.Comparator c)
public void shuffle()
public boolean reorderIds(java.util.List v)
public boolean addAssociation(java.lang.Object key,
java.lang.Object value)
public void removeDuplicateInstances()
public java.lang.Object getCopy()
getCopy in interface FwCopyableIFFwCopyableIFpublic java.lang.Object getDeepCopy()
getDeepCopy in interface FwCopyableIFFwCopyableIFpublic java.lang.String getFullDisplayString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||