N - Any type of Number.public abstract class AbstractBounded<N extends Comparable<N>> extends Object
| Constructor and Description |
|---|
AbstractBounded(N lower,
N initValue,
N upper,
boolean lowerStrict,
boolean upperStrict)
Creates a new Bounded object.
|
| Modifier and Type | Method and Description |
|---|---|
N |
getLowerBound()
Returns the lower limit of the object.
|
N |
getUpperBound()
Returns the upper limit of the object.
|
N |
getValue()
Returns the value.
|
boolean |
isLowerBoundStrict()
Does the value have to be strictly greater than the lower bound?
|
boolean |
isUpperBoundStrict()
Does the value have to be strictly lower than the upper bound?
|
void |
setValue(N v)
Set the value
v as the value of the Bounded Object. |
abstract void |
setValue(String s)
Sets the value of the
Bounded object. |
public AbstractBounded(N lower, N initValue, N upper, boolean lowerStrict, boolean upperStrict)
lower - The lower bound value.initValue - The initial value.upper - The upper bound value.lowerStrict - True means that the value cannot be equal to the lower bound.upperStrict - True means that the value cannot be equal to the upper bound.public N getUpperBound()
public N getLowerBound()
public boolean isUpperBoundStrict()
public boolean isLowerBoundStrict()
public N getValue()
Bounded object.public void setValue(N v)
v as the value of the Bounded Object.v - the value to be set.public abstract void setValue(String s)
Bounded object.s - will be converted to the value type of the Bounded object.Copyright 2011 Cytoscape Consortium. All rights reserved.