Constructor and Description |
---|
Limit()
Initialises an unbounded limit, i.e.
|
Limit(BigDecimal limit,
boolean strict)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Limit |
add(BigDecimal arg)
Add the input value into the limit value
|
Object |
clone() |
double |
getDoubleValue()
Get the double limit value
|
BigDecimal |
getValue()
Get the limit value
|
boolean |
isEqualTo(BigDecimal arg)
Is the input value equal to the limit value?
|
boolean |
isLowerBoundOf(BigDecimal arg)
Is the limit lower bound off the input value
|
boolean |
isLowerBoundOf(Limit v)
Is the input limit value lower bounded of the limit value?
|
boolean |
isStrict()
Is the limit strictly?
|
boolean |
isStrictLowerBoundOf(BigDecimal arg)
Is the limit strictly lower bound of the input value
|
boolean |
isStrictLowerBoundOf(Limit v)
Is the input limit value strictly lower bounded of the limit value?
|
boolean |
isStrictUpperBoundOf(BigDecimal arg)
Is the limit strictly upper bound of the input value
|
boolean |
isStrictUpperBoundOf(Limit v)
Is the input limit value strictly upper bounded of the limit value?
|
boolean |
isUnbounded()
Is not bounded?
|
boolean |
isUpperBoundOf(BigDecimal arg)
Is the limit upper bound off the input value
|
boolean |
isUpperBoundOf(Limit v)
Is the input limit value upper bounded of the limit value?
|
void |
setStrict(boolean strict)
Set the strict value
|
void |
setValue(BigDecimal limit)
Set the limit value
|
String |
toString() |
public Limit()
public Limit(BigDecimal limit, boolean strict)
limit
- - The limit valuestrict
- - Is strict?public boolean isUnbounded()
public BigDecimal getValue()
public double getDoubleValue()
public void setValue(BigDecimal limit)
limit
- - The limit valuepublic boolean isStrict()
public void setStrict(boolean strict)
strict
- - The valuepublic boolean isUpperBoundOf(BigDecimal arg)
arg
- - The bound valuepublic boolean isLowerBoundOf(BigDecimal arg)
arg
- - The bound valuepublic boolean isStrictUpperBoundOf(BigDecimal arg)
arg
- - The bound valuepublic boolean isStrictLowerBoundOf(BigDecimal arg)
arg
- - The input valuepublic Limit add(BigDecimal arg)
arg
- - The input valuepublic boolean isEqualTo(BigDecimal arg)
arg
- - The input valuepublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean isLowerBoundOf(Limit v)
v
- - The limit valuepublic boolean isUpperBoundOf(Limit v)
v
- - The input limit valuepublic boolean isStrictLowerBoundOf(Limit v)
v
- - The input limit valuepublic boolean isStrictUpperBoundOf(Limit v)
v
- - The input limit valueCopyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.