Package com.tomgibara.crinch.hashing
Class HashRange
java.lang.Object
com.tomgibara.crinch.hashing.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 SummaryFields Modifier and Type Field Description static HashRangeFULL_INT_RANGEstatic HashRangeFULL_LONG_RANGEstatic HashRangePOSITIVE_INT_RANGEstatic HashRangePOSITIVE_LONG_RANGE
- 
Constructor SummaryConstructors Constructor Description HashRange(int minimum, int maximum)HashRange(long minimum, long maximum)HashRange(BigInteger minimum, BigInteger maximum)
- 
Method SummaryModifier and Type Method Description booleanequals(Object obj)BigIntegergetMaximum()BigIntegergetMinimum()BigIntegergetSize()inthashCode()booleanisIntBounded()booleanisIntSized()booleanisLongBounded()booleanisLongSized()booleanisZeroBased()StringtoString()HashRangezeroBased()
- 
Field Details
- 
Constructor Details
- 
Method Details- 
isZeroBasedpublic boolean isZeroBased()
- 
isIntBoundedpublic boolean isIntBounded()
- 
isLongBoundedpublic boolean isLongBounded()
- 
getMinimum
- 
getMaximum
- 
getSize
- 
isIntSizedpublic boolean isIntSized()
- 
isLongSizedpublic boolean isLongSized()
- 
zeroBased
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-