|
|||||||||
| 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<E>
org.openqed.util.ImmutableListBuilder<E>
public class ImmutableListBuilder<E>
| Constructor Summary | |
|---|---|
ImmutableListBuilder(int expectedFinalSize)
|
|
| Method Summary | |
|---|---|
boolean |
add(E element)
|
E |
get(int index)
|
int |
size()
|
ImmutableList<E> |
toImmutableList()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, 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 |
|---|
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 ImmutableListBuilder(int expectedFinalSize)
| Method Detail |
|---|
public int size()
size in interface java.util.Collection<E>size in interface java.util.List<E>size in class java.util.AbstractCollection<E>public E get(int index)
get in interface java.util.List<E>get in class java.util.AbstractList<E>public boolean add(E element)
add in interface java.util.Collection<E>add in interface java.util.List<E>add in class java.util.AbstractList<E>public ImmutableList<E> toImmutableList()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||