Modifier and Type | Class and Description |
---|---|
class |
EnumBitSet<E extends Enum<E> & EnumBitSetHelper<E>>
This data structure allows managing enum constants in a mutable set with methods similar to
EnumSet and BitSet.
|
class |
GeneralDomainBitSet<T>
Provides a mutable implementation of
DomainBitSet , that can be used with any type. |
class |
SmallDomainBitSet<T>
BitSet with a domain of up to 64 elements.
|
Modifier and Type | Method and Description |
---|---|
static <T,D extends DomainBitSet<T>> |
BitSetUtilities.toDomainBitSet(Function<Collection<T>,D> bitsetFactory)
Collector to convert a
Stream to a DomainBitSet . |
Modifier and Type | Method and Description |
---|---|
static <T> DomainBitSet<T> |
DomainBitSet.allOf(List<T> elements)
Creates a set with the given domain, that contains all elements.
|
static <T> DomainBitSet<T> |
DomainBitSet.allOf(T... elements)
Creates a set with the given domain, that contains all elements.
|
default DomainBitSet<T> |
DomainBitSet.clone()
Default implementation of a
cloning-method using
union(BigInteger) . |
DomainBitSet<T> |
SmallDomainBitSet.complement() |
default DomainBitSet<T> |
DomainBitSet.complement()
Creates a new set with the same domain, initially containing all the elements of the domain
that are not contained in this set.
|
static DomainBitSet<Enum<?>> |
DomainBitSet.createMultiEnumBitSet(Class<? extends Enum<?>>... enumTypes)
Creates a general bit set with a domain that consists of all elements of all given enum types.
|
DomainBitSet<T> |
SmallDomainBitSet.intersect(BigInteger mask) |
DomainBitSet<T> |
DomainBitSet.intersect(BigInteger mask)
The intersection of this and a given mask.
|
DomainBitSet<T> |
SmallDomainBitSet.intersect(BitSet s) |
DomainBitSet<T> |
DomainBitSet.intersect(BitSet set)
The intersection of this and a given bit set.
|
static <T> DomainBitSet<T> |
BitSetUtilities.intersect(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the intersection of two sets.
|
DomainBitSet<T> |
SmallDomainBitSet.intersect(Iterable<T> s) |
DomainBitSet<T> |
DomainBitSet.intersect(Iterable<T> set)
Intersection of this and the given set.
|
DomainBitSet<T> |
SmallDomainBitSet.intersect(long mask) |
DomainBitSet<T> |
DomainBitSet.intersect(long mask)
Intersection of this and the given set.
|
DomainBitSet<T> |
SmallDomainBitSet.intersectVarArgs(T... elements) |
default DomainBitSet<T> |
DomainBitSet.intersectVarArgs(T... set)
The intersection of this set and a set represented by an array (varargs).
|
default <S> DomainBitSet<S> |
DomainBitSet.map(Domain<S> domain)
Returns a new set with elements of a given domain, containing all mapped elements.
|
<S> DomainBitSet<S> |
EnumBitSet.map(Domain<S> newDomain,
Function<E,S> mapper)
Returns a new set with elements of a given domain, containing all mapped elements.
|
default <S> DomainBitSet<S> |
DomainBitSet.map(Domain<S> domain,
Function<T,S> mapper)
Returns a new set with elements of a given domain, containing all mapped elements.
|
DomainBitSet<T> |
SmallDomainBitSet.minus(BigInteger mask) |
DomainBitSet<T> |
DomainBitSet.minus(BigInteger mask)
The relative complement of this set and a set represented by a
BigInteger . |
DomainBitSet<T> |
SmallDomainBitSet.minus(BitSet s) |
DomainBitSet<T> |
DomainBitSet.minus(BitSet set)
The relative complement of this set and a set represented by a
BitSet . |
static <T> DomainBitSet<T> |
BitSetUtilities.minus(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the relative complement of two sets.
|
DomainBitSet<T> |
SmallDomainBitSet.minus(Iterable<T> s) |
DomainBitSet<T> |
DomainBitSet.minus(Iterable<T> set)
The relative complement of this set and another set.
|
DomainBitSet<T> |
SmallDomainBitSet.minus(long mask) |
DomainBitSet<T> |
DomainBitSet.minus(long mask)
The relative complement of this set and a set represented by a bit mask.
|
DomainBitSet<T> |
SmallDomainBitSet.minusVarArgs(T... elements) |
default DomainBitSet<T> |
DomainBitSet.minusVarArgs(T... set)
The relative complement of this set and a set represented by an array (varargs).
|
static <T> DomainBitSet<T> |
DomainBitSet.noneOf(List<T> elements)
Creates a set with the given domain, that contains none of the elements.
|
static <T> DomainBitSet<T> |
DomainBitSet.noneOf(T... elements)
Creates a set with the given domain, that contains none of the elements.
|
default <S> DomainBitSet<T> |
DomainBitSet.semijoin(DomainBitSet<S> set,
BiPredicate<T,S> predicate)
Returns a new set with all elements in this set, that have a matching element in the other set.
|
DomainBitSet<T> |
SmallDomainBitSet.union(BigInteger mask) |
DomainBitSet<T> |
DomainBitSet.union(BigInteger mask)
The union of this set and a set represented by a
BitSet . |
DomainBitSet<T> |
SmallDomainBitSet.union(BitSet s) |
DomainBitSet<T> |
DomainBitSet.union(BitSet set)
The union of this set and a set represented by a
BitSet . |
static <T> DomainBitSet<T> |
BitSetUtilities.union(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the union of two sets.
|
DomainBitSet<T> |
SmallDomainBitSet.union(Iterable<T> s) |
DomainBitSet<T> |
DomainBitSet.union(Iterable<T> set)
The union of this set and a set represented by an
iterable collection. |
DomainBitSet<T> |
SmallDomainBitSet.union(long mask) |
DomainBitSet<T> |
DomainBitSet.union(long mask)
The union of this set and a set represented by a bit mask.
|
DomainBitSet<T> |
SmallDomainBitSet.unionVarArgs(T... elements) |
default DomainBitSet<T> |
DomainBitSet.unionVarArgs(T... set)
The union of this set and a set represented by an array (varargs).
|
Modifier and Type | Method and Description |
---|---|
Function<Collection<T>,DomainBitSet<T>> |
Domain.factory()
Creates a factory to create new sets with this domain.
|
default Iterable<? extends DomainBitSet<T>> |
DomainBitSet.powerset()
The powerset, which is the set of all subsets.
|
static <T> Collector<T,Set<T>,DomainBitSet<T>> |
BitSetUtilities.toDomainBitSet(Domain<T> domain)
Collector to convert a
Stream to a DomainBitSet . |
Modifier and Type | Method and Description |
---|---|
static <C,T1 extends C,T2 extends C> |
BitSetUtilities.cross(DomainBitSet<T2> set1,
DomainBitSet<T2> set2,
Class<C> type)
Returns the Cartesian Product.
|
static <C,T1 extends C,T2 extends C> |
BitSetUtilities.cross(DomainBitSet<T2> set1,
DomainBitSet<T2> set2,
Class<C> type)
Returns the Cartesian Product.
|
default <Y> Set<Pair<?,T,Y>> |
DomainBitSet.cross(DomainBitSet<Y> set)
Returns the Cartesian Product.
|
default <Y> void |
DomainBitSet.cross(DomainBitSet<Y> set,
BiConsumer<T,Y> consumer)
Creates the Cartesian Product and applies a given function to all coordinates.
|
static <T> DomainBitSet<T> |
BitSetUtilities.intersect(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the intersection of two sets.
|
static <T> DomainBitSet<T> |
BitSetUtilities.intersect(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the intersection of two sets.
|
static <T> DomainBitSet<T> |
BitSetUtilities.minus(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the relative complement of two sets.
|
static <T> DomainBitSet<T> |
BitSetUtilities.minus(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the relative complement of two sets.
|
boolean |
EnumBitSet.ofEqualDomain(DomainBitSet<E> set) |
default boolean |
DomainBitSet.ofEqualDomain(DomainBitSet<T> set)
Compares the domains.
|
boolean |
SmallDomainBitSet.ofEqualElements(DomainBitSet<T> other) |
boolean |
GeneralDomainBitSet.ofEqualElements(DomainBitSet<T> other) |
default boolean |
DomainBitSet.ofEqualElements(DomainBitSet<T> set)
Compares the elements, ignoring the domains.
|
default <S> DomainBitSet<T> |
DomainBitSet.semijoin(DomainBitSet<S> set,
BiPredicate<T,S> predicate)
Returns a new set with all elements in this set, that have a matching element in the other set.
|
static <T> DomainBitSet<T> |
BitSetUtilities.union(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the union of two sets.
|
static <T> DomainBitSet<T> |
BitSetUtilities.union(DomainBitSet<T> set1,
DomainBitSet<T> set2)
Returns the union of two sets.
|
Modifier and Type | Method and Description |
---|---|
void |
SmallDomainBitSet.powerset(Consumer<DomainBitSet<T>> consumer,
boolean blocking)
Pass all subsets to a given consumer.
|
default void |
DomainBitSet.powerset(Consumer<DomainBitSet<T>> consumer,
boolean blocking)
Pass all subsets to a given consumer.
|