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 Summary
Fields Modifier and Type Field Description static HashRangeFULL_INT_RANGEstatic HashRangeFULL_LONG_RANGEstatic HashRangePOSITIVE_INT_RANGEstatic HashRangePOSITIVE_LONG_RANGE
-
Constructor Summary
Constructors Constructor Description HashRange(int minimum, int maximum)HashRange(long minimum, long maximum)HashRange(BigInteger minimum, BigInteger maximum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)BigIntegergetMaximum()BigIntegergetMinimum()BigIntegergetSize()inthashCode()booleanisIntBounded()booleanisIntSized()booleanisLongBounded()booleanisLongSized()booleanisZeroBased()StringtoString()HashRangezeroBased()
-
-
-
Constructor Detail
-
HashRange
public HashRange(BigInteger minimum, BigInteger maximum)
-
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()
-
getMinimum
public BigInteger getMinimum()
-
getMaximum
public BigInteger getMaximum()
-
getSize
public BigInteger getSize()
-
isIntSized
public boolean isIntSized()
-
isLongSized
public boolean isLongSized()
-
zeroBased
public HashRange zeroBased()
-
-