Class SortInPlace.PairDoubleInteger

  • Enclosing class:
    SortInPlace

    private static class SortInPlace.PairDoubleInteger
    extends java.lang.Object
    Helper data structure holding a (double, integer) pair.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double key
      Key.
      private int value
      Value.
    • Constructor Summary

      Constructors 
      Constructor Description
      PairDoubleInteger​(double key, int value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) double key()  
      (package private) int value()  
      • Methods inherited from class java.lang.Object

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

      • key

        private final double key
        Key.
      • value

        private final int value
        Value.
    • Constructor Detail

      • PairDoubleInteger

        PairDoubleInteger​(double key,
                          int value)
        Parameters:
        key - Key.
        value - Value.
    • Method Detail

      • key

        double key()
        Returns:
        the key.
      • value

        int value()
        Returns:
        the value.