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 ofRelationship
s.
-
-
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
_deepestIndex
The index of the deepest relationship.private int
_shallowestIndex
The index of the shallowest relationship.
-
Constructor Summary
Constructors Constructor Description RelationshipList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.lang.Object o)
Relationship
getDeepest()
Return the deepest Relationship in the list.Relationship
getShallowest()
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:
add
in interfacejava.util.Collection
- Specified by:
add
in interfacejava.util.List
- Overrides:
add
in classTypeCheckingList
-
getShallowest
public Relationship getShallowest()
Return the shallowest Relationship in the list.
-
getDeepest
public Relationship getDeepest()
Return the deepest Relationship in the list.
-
-