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