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()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KeyBitSet

      public KeyBitSet​(byte[] key, int length)
      Creates a new bit set.
      Parameters:
      key - key bytes
      length - 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 class java.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 class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object