|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javimmutable.collections.common.IndexedList<T>
@Immutable public class IndexedList<T>
Method Summary | ||
---|---|---|
static
|
copied(List<? extends T> values)
Produces an instance using a copy of the specified List to ensure that changes to the List will not influence the values returned by the instance's methods. |
|
T |
get(int index)
Retrieve the value. |
|
static
|
retained(List<? extends T> values)
Produces an instance using the provided List. |
|
int |
size()
Retrieve the number of values available in the container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> IndexedList<T> copied(List<? extends T> values)
T
- values
-
public static <T> IndexedList<T> retained(List<? extends T> values)
T
- values
-
public T get(int index)
Indexed
get
in interface Indexed<T>
public int size()
Indexed
size
in interface Indexed<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |