T - the decoded type of the elementsPT - the persisted type from which we are decoding and to which we are
encoding each elementspublic class PersistedList<T,PT> extends AbstractList<T> implements PersistedObject<T,PT>
PersistedList class provides a List implementation
suitable to hold persisted values.modCount| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T e) |
boolean |
add(T e) |
void |
clear() |
T |
get(int index) |
List<PersistedValue<T,PT>> |
getPersistedList()
Gets the persisted list.
|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
ListIterator<T> |
listIterator(int index) |
java.util.stream.Stream<T> |
parallelStream() |
T |
remove(int index) |
T |
set(int index,
T e) |
int |
size() |
java.util.stream.Stream<T> |
stream() |
List<T> |
subList(int fromIndex,
int toIndex) |
String |
toString() |
addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRangeaddAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayremoveIfpublic List<PersistedValue<T,PT>> getPersistedList()
null persisted listpublic int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>List.size()public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface List<T>isEmpty in class AbstractCollection<T>List.isEmpty()public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface Collection<T>iterator in interface List<T>iterator in class AbstractList<T>List.iterator()public ListIterator<T> listIterator(int index)
listIterator in interface List<T>listIterator in class AbstractList<T>List.listIterator(int)public java.util.stream.Stream<T> stream()
stream in interface Collection<T>Collection.stream()public java.util.stream.Stream<T> parallelStream()
parallelStream in interface Collection<T>Collection.parallelStream()public boolean add(T e)
add in interface Collection<T>add in interface List<T>add in class AbstractList<T>List.add(java.lang.Object)public void add(int index,
T e)
add in interface List<T>add in class AbstractList<T>List.add(int, java.lang.Object)public void clear()
clear in interface Collection<T>clear in interface List<T>clear in class AbstractList<T>List.clear()public T get(int index)
get in interface List<T>get in class AbstractList<T>List.get(int)public T set(int index, T e)
set in interface List<T>set in class AbstractList<T>List.set(int, java.lang.Object)public T remove(int index)
remove in interface List<T>remove in class AbstractList<T>List.remove(int)public List<T> subList(int fromIndex, int toIndex)
subList in interface List<T>subList in class AbstractList<T>List.subList(int, int)public String toString()
toString in class AbstractCollection<T>Object.toString()Copyright (C) 2015-2015 The Helenus Driver Project Authors.