fr.inria.oadymppac.utils
Class IntIntervalArray
java.lang.Object
fr.inria.oadymppac.utils.IntIntervalArray
- public class IntIntervalArray
- extends java.lang.Object
- Author:
- raf
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Generation - Code and Comments
Field Summary |
static org.apache.log4j.Logger |
logger
|
static int |
NONE
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
public static final org.apache.log4j.Logger logger
NONE
public static final int NONE
- See Also:
- Constant Field Values
IntIntervalArray
public IntIntervalArray()
add
public void add(int from,
int to)
- a a new range of values to the interval
- Parameters:
from
- : la borne minto
-
remove
public void remove(int from,
int to)
getIntervals
public DynamicIntArray getIntervals()
- Returns:
- Returns the intervals.
setIntervals
public void setIntervals(DynamicIntArray intervals)
- Parameters:
intervals
- The intervals to set.
getMax
public int getMax()
- Returns:
- Returns the max.
setMax
public void setMax(int max)
- Parameters:
max
- The max to set.
getMin
public int getMin()
- Returns:
- Returns the min.
setMin
public void setMin(int min)
- Parameters:
min
- The min to set.
getSize
public int getSize()
- Returns:
- Returns the size.
setSize
public void setSize(int size)
- Parameters:
size
- The size to set.
toString
public java.lang.String toString()
clear
public void clear()
toArray
public int[] toArray()
- Return a new array initalized with the
current content of the IntIntervalArray
- Returns:
- the created array
clone
public final java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Clone the Array (i.e. build a copy)
- Throws:
java.lang.CloneNotSupportedException
- See Also:
The content is also cloned
getValues
public int[] getValues()
- Returns: