Class DyadRankingInstance

    • Constructor Summary

      Constructors 
      Constructor Description
      DyadRankingInstance​(java.util.List<Dyad> dyads)
      Construct a new dyad ranking instance that saves the given ordering of dyads immutably.
    • Constructor Detail

      • DyadRankingInstance

        public DyadRankingInstance​(java.util.List<Dyad> dyads)
        Construct a new dyad ranking instance that saves the given ordering of dyads immutably.
        Parameters:
        dyads - the ordering of dyads to be stored in this instance
    • Method Detail

      • iterator

        public java.util.Iterator<Dyad> iterator()
      • getDyadAtPosition

        public Dyad getDyadAtPosition​(int position)
        Description copied from interface: IDyadRankingInstance
        Get the dyad at the specified position in the ordering contained in this instance.
        Parameters:
        position - The position in the ordering for which to get the dyad
        Returns:
        The dyad at the specified position
      • length

        public int length()
        Description copied from interface: IDyadRankingInstance
        Get the number of dyads in the ranking.
        Returns:
        The number of dyads in the ranking.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getTargetValue

        public DyadRankingInstance getTargetValue()
        Description copied from interface: ILabeledInstance
        Getter for the value of the target attribute.
        Returns:
        The value of the traget attribute.