|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.util.FloatSet jopt.csp.util.FloatSparseSet
A sorted set of individual float values
Constructor Summary | |
FloatSparseSet()
Creates a new set |
Method Summary | |
void |
add(float val)
Adds a value to set |
void |
add(float start,
float end)
Adds a range of values to set |
void |
clear()
Removes all values from the set |
java.lang.Object |
clone()
Creates a duplicate of this set |
boolean |
contains(float val)
Returns true if value is contained in set |
FloatSparseSetListener |
getListener()
Returns listener that is currently assigned to set |
float |
getMax()
Returns maximum value for set |
float |
getMin()
Returns minimum value for set |
float |
getNextHigher(float val)
Returns the next higher value in the domain or current value if none exists |
float |
getNextLower(float val)
Returns the next lower value in the domain or current value if none exists |
void |
remove(float val)
Removes a value from the set |
void |
remove(float start,
float end)
Removes a range of values from the set |
void |
removeEndingAt(float val)
Removes all values below and including given value |
void |
removeEndingBefore(float val)
Removes all values below given value |
void |
removeStartingAfter(float val)
Removes all values above given value |
void |
removeStartingFrom(float val)
Removes all values above and including given value |
void |
setListener(FloatSparseSetListener listener,
int callback)
Sets listener for set to be notified of changes |
int |
size()
Returns the size of the set |
java.lang.String |
toString()
|
NumberIterator |
values()
returns an iterator containing all numbers in the set |
Methods inherited from class jopt.csp.util.FloatSet |
addAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FloatSparseSet()
Method Detail |
public final int size()
public void clear()
clear
in interface NumSet
clear
in class FloatSet
public float getMin()
getMin
in class FloatSet
public float getMax()
getMax
in class FloatSet
public boolean contains(float val)
contains
in class FloatSet
public void add(float val)
add
in class FloatSet
public void add(float start, float end)
add
in class FloatSet
public void remove(float val)
remove
in class FloatSet
public void remove(float start, float end)
remove
in class FloatSet
public void removeStartingFrom(float val)
removeStartingFrom
in class FloatSet
public void removeStartingAfter(float val)
FloatSet
removeStartingAfter
in class FloatSet
public void removeEndingAt(float val)
removeEndingAt
in class FloatSet
public void removeEndingBefore(float val)
FloatSet
removeEndingBefore
in class FloatSet
public float getNextHigher(float val)
getNextHigher
in class FloatSet
public float getNextLower(float val)
getNextLower
in class FloatSet
public java.lang.Object clone()
clone
in interface NumSet
clone
in class FloatSet
public void setListener(FloatSparseSetListener listener, int callback)
public FloatSparseSetListener getListener()
public NumberIterator values()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |