Package org.uma.jmetal.util.binarySet
Class BinarySet
java.lang.Object
java.util.BitSet
org.uma.jmetal.util.binarySet.BinarySet
- All Implemented Interfaces:
Serializable,Cloneable
Class representing a bit set including a method to get the total number of bits
- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
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, valueOf, valueOf, valueOf, valueOf, xor
-
Constructor Details
-
BinarySet
public BinarySet(int numberOfBits) Constructor- Parameters:
numberOfBits- Number of bits of the binary string
-
-
Method Details
-
getBinarySetLength
public int getBinarySetLength()Returns the total number of bits- Returns:
- The number of bits of the binary set
-
toString
-