public class JavaListObject<T> extends AbstractList<T>
modCount
Constructor and Description |
---|
JavaListObject(Function<Integer,T> getter,
BiConsumer<Integer,T> setter,
BiConsumer<Integer,T> adder,
Consumer<Integer> remover,
Supplier<Integer> sizer) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T t) |
T |
get(int index) |
T |
remove(int index) |
T |
set(int index,
T element) |
int |
size() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public T get(int index)
public void add(int index, T t)
public T remove(int index)
public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>