butler.ext.interval
Class Interval
java.lang.Object
butler.ext.interval.Interval
- Direct Known Subclasses:
- DateInterval, IntervalColumn.ThisInterval
public class Interval
- extends java.lang.Object
- Author:
- Fredrik Bertilsson
Constructor Summary |
protected |
Interval()
|
|
Interval(java.lang.Comparable start,
java.lang.Comparable end)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Interval
public Interval(java.lang.Comparable start,
java.lang.Comparable end)
Interval
protected Interval()
getStart
public java.lang.Comparable getStart()
throws java.lang.Exception
- Throws:
java.lang.Exception
setStart
public void setStart(java.lang.Comparable start)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEnd
public java.lang.Comparable getEnd()
throws java.lang.Exception
- Throws:
java.lang.Exception
setEnd
public void setEnd(java.lang.Comparable end)
throws java.lang.Exception
- Throws:
java.lang.Exception
isIncludeEnd
public boolean isIncludeEnd()
- Returns:
- Returns the includeEnd.
setIncludeEnd
public void setIncludeEnd(boolean includeEnd)
- Parameters:
includeEnd
- The includeEnd to set.
isIncludeStart
public boolean isIncludeStart()
- Returns:
- Returns the includeStart.
setIncludeStart
public void setIncludeStart(boolean includeStart)
- Parameters:
includeStart
- The includeStart to set.
contains
public boolean contains(java.lang.Comparable obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
contains
public boolean contains(Interval interval)
throws java.lang.Exception
- Throws:
java.lang.Exception
overlap
public boolean overlap(Interval interval)
throws java.lang.Exception
- Throws:
java.lang.Exception
intersection
public Interval intersection(Interval interval)
throws java.lang.Exception
- Throws:
java.lang.Exception
union
public Interval union(Interval interval)
throws java.lang.Exception
- Throws:
java.lang.Exception
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object