Package de.intarsys.tools.number
Class NumberInterval
java.lang.Object
de.intarsys.tools.number.NumberWrapper
de.intarsys.tools.number.NumberInterval
- All Implemented Interfaces:
Iterable
,Collection
,Set
An implementation of NumberWrapper that represents an interval of numbers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.intarsys.tools.number.NumberWrapper
clear, containsAll, getFirst, remove, removeAll, retainAll, toArray
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Field Details
-
SEPARATOR
public static char SEPARATOR
-
-
Constructor Details
-
NumberInterval
public NumberInterval()NumberInterval constructor comment.
-
-
Method Details
-
setFrom
-
getFrom
-
setTo
-
getTo
-
iterator
-
toString
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
toArray
-
add
-
addAll
-
getMin
protected double getMin()- Specified by:
getMin
in classNumberWrapper
-
getMax
protected double getMax()- Specified by:
getMax
in classNumberWrapper
-
increment
public void increment(int i) - Specified by:
increment
in classNumberWrapper
-