Class 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 range 0 through nbits-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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • B2PBitSet

        public B2PBitSet​(int dimension)
        Creates a bit set whose initial size is large enough to explicitly represent bits with indices in the range 0 through nbits-1. All bits are initially false.
        Parameters:
        dimension - the initial size of the bit set
    • 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 class java.util.BitSet