|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjopt.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 NumSetclear in class FloatSetpublic float getMin()
getMin in class FloatSetpublic float getMax()
getMax in class FloatSetpublic boolean contains(float val)
contains in class FloatSetpublic void add(float val)
add in class FloatSet
public void add(float start,
float end)
add in class FloatSetpublic void remove(float val)
remove in class FloatSet
public void remove(float start,
float end)
remove in class FloatSetpublic void removeStartingFrom(float val)
removeStartingFrom in class FloatSetpublic void removeStartingAfter(float val)
FloatSet
removeStartingAfter in class FloatSetpublic void removeEndingAt(float val)
removeEndingAt in class FloatSetpublic void removeEndingBefore(float val)
FloatSet
removeEndingBefore in class FloatSetpublic float getNextHigher(float val)
getNextHigher in class FloatSetpublic float getNextLower(float val)
getNextLower in class FloatSetpublic java.lang.Object clone()
clone in interface NumSetclone 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 | ||||||||||