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, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
getMinin classNumberWrapper
-
getMax
protected double getMax()- Specified by:
getMaxin classNumberWrapper
-
increment
public void increment(int i) - Specified by:
incrementin classNumberWrapper
-