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.
setFrom
public void setFrom(Number newFrom)
getFrom
public Number getFrom()
setTo
public void setTo(Number newTo)
getTo
public Number getTo()
iterator
public Iterator iterator()
toString
public String toString()
- Overrides:
toString
in class Object
size
public int size()
isEmpty
public boolean isEmpty()
contains
public boolean contains(Object o)
toArray
public Object[] toArray()
add
public boolean add(Object arg0)
addAll
public boolean addAll(Collection arg0)
increment
public void increment(int i)
- Specified by:
increment
in class NumberWrapper
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.