Modifier and Type | Method and Description |
---|---|
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.allOf(Class<X> type)
Creates an EnumBitSet containing all of the elements in the specified element type.
|
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.asEnumBitSet(BigInteger mask,
Class<X> type)
Creates set of enums from a bit set.
|
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.asEnumBitSet(BitSet set,
Class<X> type)
Creates set of enums from a bit set.
|
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.asEnumBitSet(Collection<X> collection,
Class<X> type)
Creates a new EnumBitSet from a given Collection.
|
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.asEnumBitSet(EnumSet<X> set,
Class<X> type)
Creates a new EnumBitSet from a given BitSet.
|
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.asEnumBitSet(long mask,
Class<X> type)
Creates set of enums from a long.
|
EnumBitSet<E> |
EnumBitSet.clone()
Returns a copy of this set.
|
EnumBitSet<E> |
EnumBitSet.complement()
Creates a new EnumBitSet with the same element type as this, initially containing all the
elements of this type that are not contained in this set.
|
EnumBitSet<E> |
EnumBitSet.intersect(BigInteger mask)
Returns a new EnumBitSet containing all elements that are in
this and the given
mask . |
EnumBitSet<E> |
EnumBitSet.intersect(BitSet set)
Returns a new EnumBitSet containing all elements that are in
this and the given
set . |
default EnumBitSet<E> |
EnumBitSetHelper.intersect(E... set)
Creates a set with all other elements removed.
|
default EnumBitSet<E> |
EnumBitSetHelper.intersect(EnumBitSet<E> set)
Creates a set with all other elements removed.
|
EnumBitSet<E> |
EnumBitSet.intersect(EnumBitSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this and the given
set . |
EnumBitSet<E> |
EnumBitSet.intersect(EnumSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this and the given
set . |
EnumBitSet<E> |
EnumBitSet.intersect(Iterable<E> set)
Returns a new EnumBitSet containing all elements that are in
this and the given
set . |
EnumBitSet<E> |
EnumBitSet.intersect(long mask)
Returns a new EnumBitSet containing all elements that are in
this and the given
mask . |
EnumBitSet<E> |
EnumBitSet.intersectVarArgs(E... set)
Returns a new EnumBitSet containing all elements that are in
this and the given
set . |
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.just(X value)
Returns a new EnumBitSet containing just one enum value.
|
<S extends Enum<S> & EnumBitSetHelper<S>> |
EnumBitSet.map(Class<S> newEnumType)
Returns a new set with elements of a given enum type, containing all elements of the other enum
type.
|
<S extends Enum<S> & EnumBitSetHelper<S>> |
EnumBitSet.map(Class<S> newEnumType,
Function<E,S> mapper)
Returns a new set with elements of a given enum type, containing all mapped elements.
|
EnumBitSet<E> |
EnumBitSet.minus(BigInteger mask)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given mask . |
EnumBitSet<E> |
EnumBitSet.minus(BitSet set)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given bit set . |
EnumBitSet<E> |
EnumBitSet.minus(EnumBitSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given set . |
EnumBitSet<E> |
EnumBitSet.minus(EnumSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given set . |
EnumBitSet<E> |
EnumBitSet.minus(Iterable<E> set)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given set . |
EnumBitSet<E> |
EnumBitSet.minus(long mask)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given mask . |
EnumBitSet<E> |
EnumBitSet.minusVarArgs(E... set)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given set . |
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.noneOf(Class<X> type)
Creates an EnumBitSet containing none of the elements in the specified element type.
|
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.of(X first,
X... more)
Creates a new EnumBitSet containing at least one value.
|
default EnumBitSet<E> |
EnumBitSetHelper.others()
Returns a set of all elements except
this . |
static <X extends Enum<X> & EnumBitSetHelper<X>> |
EnumBitSet.range(X from,
X to)
Creates an enum set initially containing all of the elements in the range defined by the two
specified endpoints.
|
default EnumBitSet<E> |
EnumBitSetHelper.removedFrom(E... set)
Creates a new EnumSet with
this removed. |
default EnumBitSet<E> |
EnumBitSetHelper.removedFrom(EnumBitSet<E> set)
Creates a new EnumBitSet with
this removed. |
default EnumBitSet<E> |
EnumBitSetHelper.toEnumBitSet()
Returns a set containing nothing but
this . |
EnumBitSet<E> |
EnumBitSet.union(BigInteger mask)
Returns a new EnumBitSet containing all elements that are in
this or the given
mask . |
EnumBitSet<E> |
EnumBitSet.union(BitSet set)
Returns a new EnumBitSet containing all elements that are in
this or the given
set . |
default EnumBitSet<E> |
EnumBitSetHelper.union(E... set)
Creates an EnumBitSet containing this and all other elements.
|
default EnumBitSet<E> |
EnumBitSetHelper.union(EnumBitSet<E> set)
Takes the bitmasks of
this and a clone of mask , then applies logical
OR. |
EnumBitSet<E> |
EnumBitSet.union(EnumBitSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this or the given
set . |
EnumBitSet<E> |
EnumBitSet.union(EnumSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this or the given
set . |
EnumBitSet<E> |
EnumBitSet.union(Iterable<E> set) |
EnumBitSet<E> |
EnumBitSet.union(long mask)
Returns a new EnumBitSet containing all elements that are in
this or the given
mask . |
EnumBitSet<E> |
EnumBitSet.unionVarArgs(E... set)
Returns a new EnumBitSet containing all elements that are in
this or the given
set . |
default EnumBitSet<E> |
EnumBitSetHelper.xor(EnumBitSet<E> set)
Removes or adds this to the given set.
|
Modifier and Type | Method and Description |
---|---|
Iterable<EnumBitSet<E>> |
EnumBitSet.powerset() |
Modifier and Type | Method and Description |
---|---|
<Y extends Enum<Y> & EnumBitSetHelper<Y>> |
EnumBitSet.cross(EnumBitSet<Y> set)
The Cartesian product with another EnumBitSet.
|
default EnumBitSet<E> |
EnumBitSetHelper.intersect(EnumBitSet<E> set)
Creates a set with all other elements removed.
|
EnumBitSet<E> |
EnumBitSet.intersect(EnumBitSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this and the given
set . |
EnumBitSet<E> |
EnumBitSet.minus(EnumBitSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this , but not in the
given set . |
default EnumBitSet<E> |
EnumBitSetHelper.removedFrom(EnumBitSet<E> set)
Creates a new EnumBitSet with
this removed. |
default EnumBitSet<E> |
EnumBitSetHelper.union(EnumBitSet<E> set)
Takes the bitmasks of
this and a clone of mask , then applies logical
OR. |
EnumBitSet<E> |
EnumBitSet.union(EnumBitSet<E> set)
Returns a new EnumBitSet containing all elements that are in
this or the given
set . |
default EnumBitSet<E> |
EnumBitSetHelper.xor(EnumBitSet<E> set)
Removes or adds this to the given set.
|