|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--net.sf.swan.util.SingletonList
A recyclable singleton list. Unlike the
adapter
provided by the Collections class, one may reset
it's single value and keep reusing the same List.
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
SingletonList()
|
|
SingletonList(java.lang.Object element)
|
|
| Method Summary | |
java.lang.Object |
get(int index)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
int |
size()
|
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
public SingletonList()
public SingletonList(java.lang.Object element)
| Method Detail |
public java.lang.Object get(int index)
get in class java.util.AbstractList
public java.lang.Object set(int index,
java.lang.Object element)
set in class java.util.AbstractListpublic int size()
size in class java.util.AbstractCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||