Class Match<K,V>
- java.lang.Object
-
- edu.stanford.nlp.ling.tokensregex.matcher.Match<K,V>
-
- All Implemented Interfaces:
HasInterval<Integer>
- Direct Known Subclasses:
MultiMatch
public class Match<K,V> extends Object implements HasInterval<Integer>
Represent a matched span over sequence of elements- Author:
- Angel Chang
-
-
Field Summary
-
Fields inherited from interface edu.stanford.nlp.util.HasInterval
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_ENDPOINTS_COMPARATOR, LENGTH_GT_COMPARATOR, LENGTH_LT_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetBegin()ObjectgetCustom()intgetEnd()Interval<Integer>getInterval()Returns the intervalList<K>getMatched()intgetMatchedLength()VgetValue()inthashCode()voidsetCustom(Object customMatchObject)StringtoString()
-
-
-
Method Detail
-
getMatchedLength
public int getMatchedLength()
-
getValue
public V getValue()
-
getBegin
public int getBegin()
-
getEnd
public int getEnd()
-
getCustom
public Object getCustom()
-
setCustom
public void setCustom(Object customMatchObject)
-
getInterval
public Interval<Integer> getInterval()
Description copied from interface:HasIntervalReturns the interval- Specified by:
getIntervalin interfaceHasInterval<K>- Returns:
- interval
-
-