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
public class NumberInterval
- extends NumberWrapper
An implementation of NumberWrapper that represents an interval of numbers.
|
Constructor Summary |
NumberInterval()
NumberInterval constructor comment. |
SEPARATOR
public static char SEPARATOR
NumberInterval
public NumberInterval()
- NumberInterval constructor comment.
add
public boolean add(Object arg0)
addAll
public boolean addAll(Collection arg0)
contains
public boolean contains(Object o)
getFrom
public Number getFrom()
getTo
public Number getTo()
increment
public NumberWrapper increment(int i)
- Specified by:
increment in class NumberWrapper
isEmpty
public boolean isEmpty()
iterator
public Iterator iterator()
setFrom
public void setFrom(Number newFrom)
setTo
public void setTo(Number newTo)
size
public int size()
toArray
public Object[] toArray()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.