java.lang.Object
io.ebeaninternal.json.ModifyAwareSet<E>
- All Implemented Interfaces:
ModifyAwareType,Serializable,Iterable<E>,Collection<E>,Set<E>
public final class ModifyAwareSet<E>
extends Object
implements Set<E>, ModifyAwareType, Serializable
Wraps a Set for the purposes of detecting modifications.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModifyAwareSet(ModifyAwareType owner, Set<E> underlying) Create with an Owner that is notified of modifications.ModifyAwareSet(Set<E> underlying) Create as top level with it's own ModifyAwareOwner instance wrapping the given Set. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> collection) voidclear()booleanbooleancontainsAll(Collection<?> collection) booleaninthashCode()booleanisEmpty()booleaniterator()booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) voidsetMarkedDirty(boolean markedDirty) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
ModifyAwareSet
Create as top level with it's own ModifyAwareOwner instance wrapping the given Set. -
ModifyAwareSet
Create with an Owner that is notified of modifications.
-
-
Method Details
-
isMarkedDirty
public boolean isMarkedDirty()- Specified by:
isMarkedDirtyin interfaceModifyAwareType
-
setMarkedDirty
public void setMarkedDirty(boolean markedDirty) - Specified by:
setMarkedDirtyin interfaceModifyAwareType
-
toString
-
equals
-
hashCode
public int hashCode() -
add
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>
-
isEmpty
public boolean isEmpty() -
iterator
-
remove
-
removeAll
-
retainAll
-
size
public int size() -
toArray
-
toArray
public <T> T[] toArray(T[] a)
-