Class KeyBitSet


  • public final class KeyBitSet
    extends Object
    A key bit set.
    • Constructor Detail

      • 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 Detail

      • getLength

        public int getLength()
      • getKeyBits

        public BitSet getKeyBits()
      • equals

        public boolean equals​(Object o)
        Checks if this key bit set is equal to the specified object.
        Overrides:
        equals in class 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 Object