edu.stanford.nlp.util
Enum Interval.RelType

java.lang.Object
  extended by java.lang.Enum<Interval.RelType>
      extended by edu.stanford.nlp.util.Interval.RelType
All Implemented Interfaces:
Serializable, Comparable<Interval.RelType>
Enclosing class:
Interval<E extends Comparable<E>>

public static enum Interval.RelType
extends Enum<Interval.RelType>

RelType gives the basic types of relations between two intervals


Enum Constant Summary
AFTER
          this interval starts after the other ends
BEFORE
          this interval ends before the other starts
BEGIN_MEET_END
          this interval's begin is the same as the other's end
CONTAIN
          this interval contains the other
END_MEET_BEGIN
          this interval's end is the same as the other's begin
EQUAL
          this interval and the other have the same endpoints
INSIDE
          this interval is inside the other
NONE
          There is no relationship between the two interval.
OVERLAP
          this interval and the other overlaps
UNKNOWN
          The relations between the two intervals are unknown.
 
Method Summary
static Interval.RelType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Interval.RelType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BEFORE

public static final Interval.RelType BEFORE
this interval ends before the other starts


AFTER

public static final Interval.RelType AFTER
this interval starts after the other ends


EQUAL

public static final Interval.RelType EQUAL
this interval and the other have the same endpoints


BEGIN_MEET_END

public static final Interval.RelType BEGIN_MEET_END
this interval's begin is the same as the other's end


END_MEET_BEGIN

public static final Interval.RelType END_MEET_BEGIN
this interval's end is the same as the other's begin


CONTAIN

public static final Interval.RelType CONTAIN
this interval contains the other


INSIDE

public static final Interval.RelType INSIDE
this interval is inside the other


OVERLAP

public static final Interval.RelType OVERLAP
this interval and the other overlaps


UNKNOWN

public static final Interval.RelType UNKNOWN
The relations between the two intervals are unknown. This is only used for fuzzy intervals, where not all the endpoints are comparable.


NONE

public static final Interval.RelType NONE
There is no relationship between the two interval. This is used when one of the intervals being compared is null.

Method Detail

values

public static Interval.RelType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Interval.RelType c : Interval.RelType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Interval.RelType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Stanford NLP Group