fr.inria.oadymppac.utils
Class IntIntervalArray

java.lang.Object
  extended byfr.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
           
 
Constructor Summary
IntIntervalArray()
           
 
Method Summary
 void add(int from, int to)
          a a new range of values to the interval
 void clear()
           
 java.lang.Object clone()
          Clone the Array (i.e. build a copy)
 DynamicIntArray getIntervals()
           
 int getMax()
           
 int getMin()
           
 int getSize()
           
 int[] getValues()
           
 void remove(int from, int to)
           
 void setIntervals(DynamicIntArray intervals)
           
 void setMax(int max)
           
 void setMin(int min)
           
 void setSize(int size)
           
 int[] toArray()
          Return a new array initalized with the current content of the IntIntervalArray
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger

NONE

public static final int NONE
See Also:
Constant Field Values
Constructor Detail

IntIntervalArray

public IntIntervalArray()
Method Detail

add

public void add(int from,
                int to)
a a new range of values to the interval

Parameters:
from - : la borne min
to -

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: