|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<T>
org.homeunix.thecave.moss.data.list.ListSet<T>
public class ListSet<T>
A list which is automatically generated, with a Set backing it. Can be used to convert a Set to a List, but allow easy updating of the list when the backing Set changes. Call updateList() to update.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ListSet(java.util.Set<T> backingSet)
|
|
| Method Summary | |
|---|---|
T |
get(int index)
|
int |
size()
|
void |
updateList()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, 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 ListSet(java.util.Set<T> backingSet)
| Method Detail |
|---|
public T get(int index)
get in interface java.util.List<T>get in class java.util.AbstractList<T>public int size()
size in interface java.util.Collection<T>size in interface java.util.List<T>size in class java.util.AbstractCollection<T>public void updateList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||