Class HashRange


  • public class HashRange
    extends Object
    Records the range of values that a hash value may take. Both range values are inclusive.
    Author:
    tomgibara
    • Field Detail

      • FULL_INT_RANGE

        public static final HashRange FULL_INT_RANGE
      • POSITIVE_INT_RANGE

        public static final HashRange POSITIVE_INT_RANGE
      • FULL_LONG_RANGE

        public static final HashRange FULL_LONG_RANGE
      • POSITIVE_LONG_RANGE

        public static final HashRange POSITIVE_LONG_RANGE
    • Constructor Detail

      • HashRange

        public HashRange​(int minimum,
                         int maximum)
      • HashRange

        public HashRange​(long minimum,
                         long maximum)
    • Method Detail

      • isZeroBased

        public boolean isZeroBased()
      • isIntBounded

        public boolean isIntBounded()
      • isLongBounded

        public boolean isLongBounded()
      • isIntSized

        public boolean isIntSized()
      • isLongSized

        public boolean isLongSized()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object