| Modifier and Type | Field and Description |
|---|---|
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | iterator()
Implements abstract java. Implements java. Required implementation that returns an iterator. |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this set (its cardinality). |
| backingList | back to summary |
|---|---|
| private List<E> backingList | |
| UnmodifiableListSet | back to summary |
|---|---|
| public UnmodifiableListSet(List<E> backingList) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Required implementation that returns an iterator. Note that I don't just return backingList.iterator() because doing so would open up a whole through which developers could remove items from this supposedly unmodifiable set. So the iterator is wrapped such that it throws an exception on remove.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |