edu.washington.cs.knowitall.commonlib
Class AbstractRange

java.lang.Object
  extended by edu.washington.cs.knowitall.commonlib.AbstractRange
Direct Known Subclasses:
Range, RangeSet

public abstract class AbstractRange
extends Object


Constructor Summary
AbstractRange()
           
 
Method Summary
abstract  boolean contains(int i)
           
abstract  boolean contains(Range range)
           
abstract  int getEnd()
           
abstract  int getStart()
           
abstract  boolean isEmpty()
           
 boolean isLeftOf(AbstractRange range)
          Returns true if this range ends before the other range starts.
 boolean isRightOf(AbstractRange range)
          Returns true if this range ends before the other range starts.
 boolean startsLeftOf(AbstractRange range)
          Returns true if this range starst before the other range starts.
 boolean startsRightOf(AbstractRange range)
          Returns true if this range starts before the other range starts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRange

public AbstractRange()
Method Detail

isEmpty

public abstract boolean isEmpty()

getStart

public abstract int getStart()

getEnd

public abstract int getEnd()

contains

public abstract boolean contains(int i)

contains

public abstract boolean contains(Range range)

isLeftOf

public boolean isLeftOf(AbstractRange range)
Returns true if this range ends before the other range starts.

Parameters:
range -
Returns:

isRightOf

public boolean isRightOf(AbstractRange range)
Returns true if this range ends before the other range starts.

Parameters:
range -
Returns:

startsLeftOf

public boolean startsLeftOf(AbstractRange range)
Returns true if this range starst before the other range starts.

Parameters:
range -
Returns:

startsRightOf

public boolean startsRightOf(AbstractRange range)
Returns true if this range starts before the other range starts.

Parameters:
range -
Returns:


Copyright © 2012 University of Washington CSE. All Rights Reserved.