Class Pairs.IntObjectPair<T extends Comparable>

  • Enclosing class:
    Pairs

    public static class Pairs.IntObjectPair<T extends Comparable>
    extends Object
    Utility class to store a primitive 'int' and 'Object' pair.
    • Constructor Detail

      • IntObjectPair

        public IntObjectPair​(int intVal,
                             T objectVal)
        Constructor for the class
        Parameters:
        intVal - 'int' value
        objectVal - 'Object' value
    • Method Detail

      • setIntValue

        public void setIntValue​(int intValue)
        Sets the provided value into the 'int' field.
      • getIntValue

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

        public void setObjectValue​(T objectValue)
        Sets the specified object value into the 'object' field.
      • getObjectValue

        public T getObjectValue()
        Returns the object value of the pair
        Returns:
        'Object' value