Package com.tomgibara.crinch.hashing
Class HashRange
java.lang.Object
com.tomgibara.crinch.hashing.HashRange
Records the range of values that a hash value may take. Both range values are inclusive.
- Author:
- tomgibara
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHashRange
(int minimum, int maximum) HashRange
(long minimum, long maximum) HashRange
(BigInteger minimum, BigInteger maximum) -
Method Summary
-
Field Details
-
FULL_INT_RANGE
-
POSITIVE_INT_RANGE
-
FULL_LONG_RANGE
-
POSITIVE_LONG_RANGE
-
-
Constructor Details
-
HashRange
-
HashRange
public HashRange(int minimum, int maximum) -
HashRange
public HashRange(long minimum, long maximum)
-
-
Method Details
-
isZeroBased
public boolean isZeroBased() -
isIntBounded
public boolean isIntBounded() -
isLongBounded
public boolean isLongBounded() -
getMinimum
-
getMaximum
-
getSize
-
isIntSized
public boolean isIntSized() -
isLongSized
public boolean isLongSized() -
zeroBased
-
equals
-
hashCode
public int hashCode() -
toString
-