Class RelationshipList
- java.lang.Object
-
- net.didion.jwnl.util.TypeCheckingList
-
- net.didion.jwnl.data.relationship.RelationshipList
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable,java.util.Collection,java.util.List,DeepCloneable
public class RelationshipList extends TypeCheckingList
A list ofRelationships.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.didion.jwnl.util.TypeCheckingList
TypeCheckingList.TypeCheckingListIterator
-
-
Field Summary
Fields Modifier and Type Field Description private int_deepestIndexThe index of the deepest relationship.private int_shallowestIndexThe index of the shallowest relationship.
-
Constructor Summary
Constructors Constructor Description RelationshipList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.Object o)RelationshipgetDeepest()Return the deepest Relationship in the list.RelationshipgetShallowest()Return the shallowest Relationship in the list.-
Methods inherited from class net.didion.jwnl.util.TypeCheckingList
add, addAll, addAll, clear, clone, contains, containsAll, copyBackingList, deepClone, equals, get, getType, getTypeCheckingListIterator, getTypeCheckingListIterator, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
-
-
-
-
Method Detail
-
add
public boolean add(java.lang.Object o)
- Specified by:
addin interfacejava.util.Collection- Specified by:
addin interfacejava.util.List- Overrides:
addin classTypeCheckingList
-
getShallowest
public Relationship getShallowest()
Return the shallowest Relationship in the list.
-
getDeepest
public Relationship getDeepest()
Return the deepest Relationship in the list.
-
-