Class BitMask
- java.lang.Object
-
- java.util.BitSet
-
- org.processmining.specpp.datastructures.encoding.BitMask
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,MutatingSetOperations<BitMask>,SetQueries<BitMask>,Copyable<BitMask>,PartiallyOrdered<BitMask>
- Direct Known Subclasses:
WeightedBitMask
public class BitMask extends java.util.BitSet implements Copyable<BitMask>, SetQueries<BitMask>, MutatingSetOperations<BitMask>, PartiallyOrdered<BitMask>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitMaskcompletelySet(int exclusiveUpperLimit)BitMaskcopy()booleangt(BitMask other)voidintersection(BitMask other)booleanintersects(BitMask other)booleanisSubsetOf(BitMask other)booleanisSupersetOf(BitMask other)java.util.PrimitiveIterator.OfIntiterator()intkMaxIndex(int k)intkMinIndex(int k)booleanlt(BitMask other)static BitMaskof(java.lang.Integer... is)static BitMaskof(java.util.stream.IntStream is)booleansetEquality(BitMask other)voidsetminus(BitMask other)voidunion(BitMask other)-
Methods inherited from class java.util.BitSet
and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, previousClearBit, previousSetBit, set, set, set, set, size, stream, toByteArray, toLongArray, toString, valueOf, valueOf, valueOf, valueOf, xor
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.processmining.specpp.traits.PartiallyOrdered
equivalent
-
Methods inherited from interface org.processmining.specpp.datastructures.encoding.SetQueries
isDisjoint, isStrictSubsetOf, isStrictSupersetOf
-
-
-
-
Method Detail
-
gt
public boolean gt(BitMask other)
- Specified by:
gtin interfacePartiallyOrdered<BitMask>
-
lt
public boolean lt(BitMask other)
- Specified by:
ltin interfacePartiallyOrdered<BitMask>
-
completelySet
public static BitMask completelySet(int exclusiveUpperLimit)
-
iterator
public java.util.PrimitiveIterator.OfInt iterator()
-
of
public static BitMask of(java.lang.Integer... is)
-
of
public static BitMask of(java.util.stream.IntStream is)
-
intersects
public boolean intersects(BitMask other)
- Specified by:
intersectsin interfaceSetQueries<BitMask>
-
setEquality
public boolean setEquality(BitMask other)
- Specified by:
setEqualityin interfaceSetQueries<BitMask>
-
isSubsetOf
public boolean isSubsetOf(BitMask other)
- Specified by:
isSubsetOfin interfaceSetQueries<BitMask>
-
isSupersetOf
public boolean isSupersetOf(BitMask other)
- Specified by:
isSupersetOfin interfaceSetQueries<BitMask>
-
union
public void union(BitMask other)
- Specified by:
unionin interfaceMutatingSetOperations<BitMask>
-
setminus
public void setminus(BitMask other)
- Specified by:
setminusin interfaceMutatingSetOperations<BitMask>
-
intersection
public void intersection(BitMask other)
- Specified by:
intersectionin interfaceMutatingSetOperations<BitMask>
-
kMaxIndex
public int kMaxIndex(int k)
-
kMinIndex
public int kMinIndex(int k)
-
-