Class RelationshipList
java.lang.Object
net.didion.jwnl.util.TypeCheckingList
net.didion.jwnl.data.relationship.RelationshipList
- All Implemented Interfaces:
Cloneable,Iterable,Collection,List,DeepCloneable
A list of
Relationships.-
Nested Class Summary
Nested classes/interfaces inherited from class net.didion.jwnl.util.TypeCheckingList
TypeCheckingList.TypeCheckingListIterator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe index of the deepest relationship.private intThe index of the shallowest relationship. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the deepest Relationship in the list.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, toArrayMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
hashCode, replaceAll, sort, spliterator
-
Field Details
-
_shallowestIndex
private int _shallowestIndexThe index of the shallowest relationship. -
_deepestIndex
private int _deepestIndexThe index of the deepest relationship.
-
-
Constructor Details
-
RelationshipList
public RelationshipList()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList- Overrides:
addin classTypeCheckingList
-
getShallowest
Return the shallowest Relationship in the list. -
getDeepest
Return the deepest Relationship in the list.
-