public final class HashRange extends Object implements KeyRange<Integer>
| Modifier and Type | Method and Description |
|---|---|
static HashRange |
all() |
boolean |
equals(Object o)
This method should be overridden for KeyRange comparisons.
|
int |
hashCode()
This method should be overridden for KeyRange comparisons.
|
boolean |
includes(Integer i) |
boolean |
isAll() |
static HashRange |
of(int rangeStartInclusive,
int rangeEndExclusive) |
Integer |
rangeBeginInclusive() |
Integer |
rangeEndExclusive() |
String |
toString()
This method should be overridden for a readable representation of KeyRange.
|
public static HashRange all()
public static HashRange of(int rangeStartInclusive, int rangeEndExclusive)
rangeStartInclusive - the start of the range (inclusive)rangeEndExclusive - the end of the range (exclusive)rangeBeginInclusive, rangeEndExclusive)public boolean isAll()
public Integer rangeBeginInclusive()
rangeBeginInclusive in interface KeyRange<Integer>public Integer rangeEndExclusive()
rangeEndExclusive in interface KeyRange<Integer>public boolean includes(Integer i)
public String toString()
public boolean equals(Object o)
KeyRangeCopyright © 2018. All rights reserved.