public class RangeLong extends Object
| Constructor and Description |
|---|
RangeLong(long min,
long max)
Constructor.
|
RangeLong(RangeLong copy)
Copy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(long value)
Return true if this range contains the given value.
|
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(long min,
long max)
public RangeLong(RangeLong copy)
public boolean contains(long value)
public long getLength()
public RangeLong intersect(RangeLong o)
public Pair<RangeLong,RangeLong> removeIntersect(RangeLong o)
Copyright © 2018. All rights reserved.