Class RelationshipList

java.lang.Object
net.didion.jwnl.util.TypeCheckingList
net.didion.jwnl.data.relationship.RelationshipList
All Implemented Interfaces:
Cloneable, Iterable, Collection, List, DeepCloneable

public class RelationshipList extends TypeCheckingList
A list of Relationships.
  • Field Details

    • _shallowestIndex

      private int _shallowestIndex
      The index of the shallowest relationship.
    • _deepestIndex

      private int _deepestIndex
      The index of the deepest relationship.
  • Constructor Details

    • RelationshipList

      public RelationshipList()
  • Method Details

    • add

      public boolean add(Object o)
      Specified by:
      add in interface Collection
      Specified by:
      add in interface List
      Overrides:
      add in class TypeCheckingList
    • getShallowest

      public Relationship getShallowest()
      Return the shallowest Relationship in the list.
    • getDeepest

      public Relationship getDeepest()
      Return the deepest Relationship in the list.