Package b2p.state.bitboard.bitset
Class B2PBitSet
- java.lang.Object
-
- java.util.BitSet
-
- b2p.state.bitboard.bitset.B2PBitSet
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class B2PBitSet extends java.util.BitSet
This Class extends BitSet adding utility methods to simplify development- Author:
- Alessandro Buldini, Alessandro Pomponio, Federico Zanini
- See Also:
BitSet
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description B2PBitSet(int dimension)
Creates a bit set whose initial size is large enough to explicitly represent bits with indices in the range0
throughnbits-1
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B2PBitSet
andResult(B2PBitSet input)
Returns the results of a bitwise AND operation of this target with the argument B2PBitSet.B2PBitSet
clone()
-
Methods inherited from class java.util.BitSet
and, andNot, cardinality, clear, clear, clear, 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
-
-
-
-
Method Detail
-
andResult
public B2PBitSet andResult(B2PBitSet input)
Returns the results of a bitwise AND operation of this target with the argument B2PBitSet. The value of this target is not modified any way.- Parameters:
input
- is a B2PBitSet object- Returns:
- the results of a bitwise AND operation of this target with the argument B2PBitSet.
- See Also:
BitSet
,B2PBitSet
-
clone
public B2PBitSet clone()
- Overrides:
clone
in classjava.util.BitSet
-
-