Class KeyBitSet
java.lang.Object
com.exonum.binding.common.proofs.map.KeyBitSet
public final class KeyBitSet
extends java.lang.Object
A key bit set.
-
Constructor Summary
Constructors Constructor Description KeyBitSet(byte[] key, int length)
Creates a new bit set. -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
Checks if this key bit set is equal to the specified object.java.util.BitSet
getKeyBits()
int
getLength()
int
hashCode()
java.lang.String
toString()
-
Constructor Details
-
KeyBitSet
public KeyBitSet(byte[] key, int length)Creates a new bit set.- Parameters:
key
- key byteslength
- a length in bits, i.e., the number of significant bits in key array
-
-
Method Details
-
getLength
public int getLength() -
getKeyBits
public java.util.BitSet getKeyBits() -
equals
public boolean equals(java.lang.Object o)Checks if this key bit set is equal to the specified object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- an object to compare against- Returns:
- true if this key bit set is equal to the specified object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-