Class Pairs.IntDoublePair

  • Enclosing class:
    Pairs

    public static class Pairs.IntDoublePair
    extends Object
    Utility class to store a primitive 'int' and 'double' pair.
    • Constructor Detail

      • IntDoublePair

        public IntDoublePair​(int intVal,
                             double doubleVal)
        Constructor for the class
        Parameters:
        intVal - 'int' value
        doubleVal - 'double' value
    • Method Detail

      • setIntValue

        public void setIntValue​(int intVal)
        Sets the provided value into the 'int' field.
        Parameters:
        intVal - Value to set
      • getIntValue

        public int getIntValue()
        Returns the int value of the pair
        Returns:
        'int' value
      • setDoubleValue

        public void setDoubleValue​(double doubleVal)
        Sets the provided value into the 'double' field.
        Parameters:
        doubleVal - Value to set
      • getDoubleValue

        public double getDoubleValue()
        Returns the double value of the pair
        Returns:
        'double' value