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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
static <E extends Enum<E>>
SerEnumSet<E>wrapped()
Retrieve the wrappedEnumSet
object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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 wrappedEnumSet
object.- Returns:
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E extends Enum<E>>
- Specified by:
containsAll
in interfaceSet<E extends Enum<E>>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
hashCode
public int hashCode() -
equals
-
toString
-