Class TwoTuple<K,T>

java.lang.Object
org.sgrewritten.stargate.container.TwoTuple<K,T>
Type Parameters:
K -

The type of the first tuple value

T -

The type of the second tuple value


public class TwoTuple<K,T> extends Object
Just a small container class for storing two values
Author:
Kristian
  • Constructor Details

    • TwoTuple

      public TwoTuple(K value1, T value2)
      Instantiates a new two-tuple
      Parameters:
      value1 -

      The first value to store

      value2 -

      The second value to store

  • Method Details

    • getFirstValue

      public K getFirstValue()
      Gets the first value stored in this two-tuple
      Returns:

      The first value stored in this two-tuple

    • getSecondValue

      public T getSecondValue()
      Gets the second value of this two-tuple
      Returns:

      The second value of this two-tuple

    • toString

      public String toString()
      Overrides:
      toString in class Object