public class Yield extends TreeSet<Word> implements Comparable<Yield>
| Constructor and Description |
|---|
Yield(Predicate pred,
Sentence sen,
String argLabel) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Yield y)
Compares yields.
|
Collection<Yield> |
explode()
Breaks this yield down to continuous yields if this yield is discontinuous, otherwise it returns itself in a list.
|
String |
getArgLabel() |
Predicate |
getPred() |
boolean |
isContinuous()
Checks whether this yield is continuous, ie they contain all the words in the
sentence between this.first() and this.last().
|
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSetequals, hashCode, removeAllcontainsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic String getArgLabel()
public Predicate getPred()
public boolean isContinuous()
public int compareTo(Yield y)
compareTo in interface Comparable<Yield>public Collection<Yield> explode()
Copyright © 2016. All rights reserved.