Documentation of 'javanpst.utils.Pair' Java class
Pair
javanpst.utils

Class Pair

  • All Implemented Interfaces:
    java.lang.Comparable<java.lang.Object>


    public class Pair
    extends java.lang.Object
    implements java.lang.Comparable<java.lang.Object>
    A implementation of a pair of double values The pair can be sorted by its first value (a)
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      double a
      First value
      double b
      Second value
    • Constructor Summary

      Constructors 
      Constructor and Description
      Pair()
      Default builder.
      Pair(double aVal, double bVal)
      Builder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compareTo(java.lang.Object arg0) 
      java.lang.String toString()
      To string method
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • a

        public double a
        First value
      • b

        public double b
        Second value
    • Constructor Detail

      • Pair

        public Pair()
        Default builder.
      • Pair

        public Pair(double aVal,
                    double bVal)
        Builder
        Parameters:
        aVal - first value
        bVal - second value
    • Method Detail

      • toString

        public java.lang.String toString()
        To string method
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo(java.lang.Object arg0)
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.Object>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.