public class HashRange extends Object
| Modifier and Type | Field and Description |
|---|---|
static HashRange | FULL_INT_RANGEFull int range from Integer.MIN_VALUE to Integer.MAX_VALUE |
static HashRange | FULL_LONG_RANGEFull long range from Long.MIN_VALUE to Long.MAX_VALUE |
static HashRange | POSITIVE_INT_RANGEPositive int range from 1 to Integer.MAX_VALUE |
static HashRange | POSITIVE_LONG_RANGEPositive long range from 1 to Long.MAX_VALUE |
| Constructor and Description |
|---|
HashRange(BigInteger minimum,
BigInteger maximum)Construct a HashRange with BigInteger bounds. |
HashRange(int minimum,
int maximum)Construct a HashRange with int bounds. |
HashRange(long minimum,
long maximum)Construct a HashRange with long bounds. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object obj) |
BigInteger | getMaximum() |
BigInteger | getMinimum() |
BigInteger | getSize() |
int | hashCode() |
boolean | isIntBounded() |
boolean | isIntSized() |
boolean | isLongBounded() |
boolean | isLongSized() |
boolean | isZeroBased() |
String | toString() |
HashRange | zeroBased() |
public static final HashRange FULL_INT_RANGE
public static final HashRange FULL_LONG_RANGE
public static final HashRange POSITIVE_INT_RANGE
public static final HashRange POSITIVE_LONG_RANGE
public HashRange(BigInteger minimum, BigInteger maximum)
minimum - the minimum value (inclusive)maximum - the maximum value (inclusive)public HashRange(int minimum,
int maximum)minimum - the minimum value (inclusive)maximum - the maximum value (inclusive)public HashRange(long minimum,
long maximum)minimum - the minimum value (inclusive)maximum - the maximum value (inclusive)public BigInteger getMaximum()
public BigInteger getMinimum()
public BigInteger getSize()
public boolean isIntBounded()
public boolean isIntSized()
public boolean isLongBounded()
public boolean isLongSized()
public boolean isZeroBased()
public HashRange zeroBased()