Class Pair


  • public class Pair
    extends java.lang.Object
    A pair of double precision numbers.

    This duplicates the C++ class std::pair<double, double>.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double first
      The first member of the pair.
      double second
      The second member of the pair.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair()
      No-argument Constructor
      Pair​(double first, double second)
      Constructor
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • first

        public double first
        The first member of the pair.
      • second

        public double second
        The second member of the pair.
    • Constructor Detail

      • Pair

        public Pair​(double first,
                    double second)
        Constructor

        Parameters:
        first - the first member of the pair.
        second - the second member of the pair.
      • Pair

        public Pair()
        No-argument Constructor