Class NaturalRanking.DataPosition

  • Enclosing class:
    NaturalRanking

    private static class NaturalRanking.DataPosition
    extends java.lang.Object
    Represents the position of a double value in a data array.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int position
      Data position.
      private double value
      Data value.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataPosition​(double value, int position)
      Create an instance with the given value and position.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getPosition()
      Returns the data position.
      (package private) double getValue()
      Returns the value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private final double value
        Data value.
      • position

        private final int position
        Data position.
    • Constructor Detail

      • DataPosition

        DataPosition​(double value,
                     int position)
        Create an instance with the given value and position.
        Parameters:
        value - Data value.
        position - Data position.
    • Method Detail

      • getValue

        double getValue()
        Returns the value.
        Returns:
        value
      • getPosition

        int getPosition()
        Returns the data position.
        Returns:
        position