com.evelopers.unimod.analysis
Class Range

java.lang.Object
  extended bycom.evelopers.unimod.analysis.Range

class Range
extends java.lang.Object


Nested Class Summary
(package private) static class Range.Interval
           
 
Field Summary
(package private)  java.util.List intervals
           
static int MAX
           
static int MIN
           
 
Constructor Summary
Range()
           
 
Method Summary
 void clear()
          Set this range to be equal to empty set
 void delete(int value)
          Delete point value from this range.
 Range.Interval[] getIntervals()
          Returns range of the vaiable presented as an array of intervals
 boolean includes(Range.Interval interval)
          Checks if range includes interval interval
 boolean includes(Range range)
          Checks if this range includes range
 void intersect(int left, int right)
          Intersect this range with interval [left, right]
 void intersect(Range.Interval interval)
          Intersect this range with interval
 boolean isEmpty()
          Check if range is empty set
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX

public static final int MAX
See Also:
Constant Field Values

MIN

public static final int MIN
See Also:
Constant Field Values

intervals

java.util.List intervals
Constructor Detail

Range

public Range()
Method Detail

intersect

public void intersect(int left,
                      int right)
Intersect this range with interval [left, right]


intersect

public void intersect(Range.Interval interval)
Intersect this range with interval

Parameters:
interval -

delete

public void delete(int value)
Delete point value from this range.

Parameters:
value -

clear

public void clear()
Set this range to be equal to empty set


getIntervals

public Range.Interval[] getIntervals()
Returns range of the vaiable presented as an array of intervals

Returns:
An array of intervals.

isEmpty

public boolean isEmpty()
Check if range is empty set

Returns:
whether range is empty set

includes

public boolean includes(Range.Interval interval)
Checks if range includes interval interval


includes

public boolean includes(Range range)
Checks if this range includes range


toString

public java.lang.String toString()