org.iges.util
Class Range.Long

java.lang.Object
  |
  +--org.iges.util.Range.Long
Enclosing class:
Range

public static class Range.Long
extends java.lang.Object

Represents a range of integers.


Field Summary
 long max
           
 long min
           
 
Constructor Summary
Range.Long(long _min, long _max)
          Creates a new Range.Long
 
Method Summary
 boolean contains(Range.Long range)
          Tests whether a given value is contained in this range
 boolean overlaps(Range.Long range)
          Tests whether this range overlaps the one specified
 long size()
          Returns the number of integers contained in this range
 java.lang.String toString()
          Returns a string representation of this range
 Range.Long union(Range.Long range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

min

public long min

max

public long max
Constructor Detail

Range.Long

public Range.Long(long _min,
                  long _max)
Creates a new Range.Long

Method Detail

contains

public boolean contains(Range.Long range)
Tests whether a given value is contained in this range


overlaps

public boolean overlaps(Range.Long range)
Tests whether this range overlaps the one specified


union

public Range.Long union(Range.Long range)

size

public long size()
Returns the number of integers contained in this range


toString

public java.lang.String toString()
Returns a string representation of this range

Overrides:
toString in class java.lang.Object