public class RangeLong extends Object
| Constructor and Description |
|---|
RangeLong(long min,
long max)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(long value)
Return true if this range contains the given value.
|
RangeLong |
copy()
Create a copy of this instance.
|
boolean |
equals(Object obj) |
long |
getLength() |
int |
hashCode() |
RangeLong |
intersect(RangeLong o)
Return the intersection between this range and the given range.
|
Pair<RangeLong,RangeLong> |
removeIntersect(RangeLong o)
Remove the intersection between this range and the given range, and return the range before and the range after the intersection.
|
String |
toString() |
public RangeLong copy()
public boolean contains(long value)
public long getLength()
public RangeLong intersect(RangeLong o)
Copyright © 2017. All rights reserved.