adavid.util
Class Interval

java.lang.Object
  |
  +--adavid.util.Interval

public class Interval
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Interval()
          constructor for errors
Interval(int start, int end)
          constructor: takes the limits of the interval
 
Method Summary
 int getEnd()
          returns the end
 int getStart()
          returns the start
 java.lang.String substring(java.lang.String string)
          returns the substring corresponding to the interval ; safe checks are performed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interval

public Interval()
constructor for errors

Interval

public Interval(int start,
                int end)
constructor: takes the limits of the interval
Method Detail

getStart

public int getStart()
returns the start

getEnd

public int getEnd()
returns the end

substring

public java.lang.String substring(java.lang.String string)
returns the substring corresponding to the interval ; safe checks are performed