public class RangeLong extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RangeLong.Parser
Parser from String to RangeInteger.
|
| Constructor and Description |
|---|
RangeLong(long min,
long max)
Constructor.
|
RangeLong(RangeLong copy)
Copy.
|
RangeLong(String string)
Parse from a String.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(long value)
Return true if this range contains the given value.
|
RangeLong |
copy() |
boolean |
equals(Object obj) |
long |
getLength() |
int |
hashCode() |
RangeLong |
intersect(RangeLong r)
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 RangeLong(String string) throws ParseException
ParseExceptionpublic RangeLong copy()
public boolean contains(long value)
public long getLength()
public RangeLong intersect(RangeLong r)
public Pair<RangeLong,RangeLong> removeIntersect(RangeLong o)
Copyright © 2019. All rights reserved.