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
Relationship
s.-
Nested Class Summary
Nested classes/interfaces inherited from class net.didion.jwnl.util.TypeCheckingList
TypeCheckingList.TypeCheckingListIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The index of the deepest relationship.private int
The index of the shallowest relationship. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return 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, toArray
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods 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:
add
in interfaceCollection
- Specified by:
add
in interfaceList
- Overrides:
add
in classTypeCheckingList
-
getShallowest
Return the shallowest Relationship in the list. -
getDeepest
Return the deepest Relationship in the list.
-