Class SerEnumSet<E extends Enum<E>>
java.lang.Object
com.pnfsoftware.jeb.util.serialization.objects.SerEnumSet<E>
- Type Parameters:
E-
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
A serializable version of
EnumSet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()static <E extends Enum<E>>
SerEnumSet<E>wrapped()Retrieve the wrappedEnumSetobject.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
-
SerEnumSet
public SerEnumSet()Reserved. Do not use. Usewrap(Class, EnumSet)instead.
-
-
Method Details
-
wrap
-
wrapped
Retrieve the wrappedEnumSetobject.- Returns:
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<E extends Enum<E>>- Specified by:
containsAllin interfaceSet<E extends Enum<E>>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
hashCode
public int hashCode() -
equals
-
toString
-