public class VersionedSet<T>
extends java.util.AbstractSet<T>
implements com.simsilica.lemur.core.VersionedObject<java.util.Set<T>>
Constructor and Description |
---|
VersionedSet() |
VersionedSet(java.util.Collection<T> items) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T val) |
com.simsilica.lemur.core.VersionedReference<java.util.Set<T>> |
createReference() |
java.util.Set<T> |
getObject() |
long |
getVersion() |
protected void |
incrementVersion() |
java.util.Iterator<T> |
iterator() |
int |
size() |
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public VersionedSet()
public VersionedSet(java.util.Collection<T> items)
protected void incrementVersion()
public long getVersion()
getVersion
in interface com.simsilica.lemur.core.VersionedObject<java.util.Set<T>>
public java.util.Set<T> getObject()
getObject
in interface com.simsilica.lemur.core.VersionedObject<java.util.Set<T>>
public com.simsilica.lemur.core.VersionedReference<java.util.Set<T>> createReference()
createReference
in interface com.simsilica.lemur.core.VersionedObject<java.util.Set<T>>
public boolean add(T val)
public java.util.Iterator<T> iterator()