public class VersionedReferenceList
extends java.util.AbstractList<com.simsilica.lemur.core.VersionedReference>
Constructor and Description |
---|
VersionedReferenceList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
com.simsilica.lemur.core.VersionedReference element) |
void |
addReference(com.simsilica.lemur.core.VersionedObject o) |
void |
addReferences(com.simsilica.lemur.core.VersionedObject... objects) |
static VersionedReferenceList |
create(com.simsilica.lemur.core.VersionedObject... objects) |
com.simsilica.lemur.core.VersionedReference |
get(int index) |
long |
getLastVersion() |
long |
getObjectVersion() |
boolean |
needsUpdate() |
com.simsilica.lemur.core.VersionedReference |
remove(int index) |
boolean |
removeReference(com.simsilica.lemur.core.VersionedObject o) |
com.simsilica.lemur.core.VersionedReference |
set(int index,
com.simsilica.lemur.core.VersionedReference element) |
int |
size() |
boolean |
update() |
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
public static VersionedReferenceList create(com.simsilica.lemur.core.VersionedObject... objects)
public void addReferences(com.simsilica.lemur.core.VersionedObject... objects)
public void addReference(com.simsilica.lemur.core.VersionedObject o)
public boolean removeReference(com.simsilica.lemur.core.VersionedObject o)
public com.simsilica.lemur.core.VersionedReference get(int index)
get
in interface java.util.List<com.simsilica.lemur.core.VersionedReference>
get
in class java.util.AbstractList<com.simsilica.lemur.core.VersionedReference>
public int size()
size
in interface java.util.Collection<com.simsilica.lemur.core.VersionedReference>
size
in interface java.util.List<com.simsilica.lemur.core.VersionedReference>
size
in class java.util.AbstractCollection<com.simsilica.lemur.core.VersionedReference>
public com.simsilica.lemur.core.VersionedReference set(int index, com.simsilica.lemur.core.VersionedReference element)
set
in interface java.util.List<com.simsilica.lemur.core.VersionedReference>
set
in class java.util.AbstractList<com.simsilica.lemur.core.VersionedReference>
public void add(int index, com.simsilica.lemur.core.VersionedReference element)
add
in interface java.util.List<com.simsilica.lemur.core.VersionedReference>
add
in class java.util.AbstractList<com.simsilica.lemur.core.VersionedReference>
public com.simsilica.lemur.core.VersionedReference remove(int index)
remove
in interface java.util.List<com.simsilica.lemur.core.VersionedReference>
remove
in class java.util.AbstractList<com.simsilica.lemur.core.VersionedReference>
public long getLastVersion()
public long getObjectVersion()
public boolean needsUpdate()
public boolean update()