bpiwowar.argparser
Class ListAdaptator<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
bpiwowar.argparser.ListAdaptator<T>
- All Implemented Interfaces:
- Iterable<T>, Collection<T>, List<T>
public class ListAdaptator<T>
- extends AbstractList<T>
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList |
ListAdaptator
public ListAdaptator(Object array)
- Construct a list adaptator from an array
- Parameters:
array
-
ListAdaptator
public ListAdaptator(Object array,
int from,
int size)
get
public T get(int index)
- Specified by:
get
in interface List<T>
- Specified by:
get
in class AbstractList<T>
size
public int size()
- Specified by:
size
in interface Collection<T>
- Specified by:
size
in interface List<T>
- Specified by:
size
in class AbstractCollection<T>
set
public T set(int index,
T value)
- Specified by:
set
in interface List<T>
- Overrides:
set
in class AbstractList<T>
get
public static ListAdaptator<Double> get(double[] array)
get
public static ListAdaptator<Integer> get(int[] array)
get
public static ListAdaptator<Long> get(long[] array)
get
public static <T> ListAdaptator<T> get(T[] split)
create
public static <T> ListAdaptator<T> create(T... array)
Copyright © 2013. All Rights Reserved.