public class VersionedList<T>
extends java.util.AbstractList<T>
implements com.simsilica.lemur.core.VersionedObject<java.util.List<T>>
Modifier | Constructor and Description |
---|---|
|
VersionedList() |
|
VersionedList(java.util.List<T> items) |
protected |
VersionedList(java.util.List<T> items,
boolean copy) |
Modifier and Type | Method and Description |
---|---|
void |
add(int i,
T val) |
com.simsilica.lemur.core.VersionedReference<java.util.List<T>> |
createReference() |
T |
get(int i) |
java.util.List<T> |
getObject() |
long |
getVersion() |
protected void |
incrementVersion() |
T |
remove(int i) |
T |
set(int i,
T val) |
int |
size() |
static <T> VersionedList<T> |
wrap(java.util.List<T> list)
Wraps a list in a VersionedList instead of copying it.
|
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
protected VersionedList(java.util.List<T> items, boolean copy)
public VersionedList()
public VersionedList(java.util.List<T> items)
public static <T> VersionedList<T> wrap(java.util.List<T> list)
protected void incrementVersion()
public long getVersion()
getVersion
in interface com.simsilica.lemur.core.VersionedObject<java.util.List<T>>
public java.util.List<T> getObject()
getObject
in interface com.simsilica.lemur.core.VersionedObject<java.util.List<T>>
public com.simsilica.lemur.core.VersionedReference<java.util.List<T>> createReference()
createReference
in interface com.simsilica.lemur.core.VersionedObject<java.util.List<T>>
public T get(int i)
public int size()
public void add(int i, T val)