Package jade

Class JadePrimitivePair<T,V>

java.lang.Object
jade.JadePrimitivePair<T,V>

public class JadePrimitivePair<T,V> extends Object
Stores a pair of primitives for Jade.
Since:
2023-02
  • Constructor Details

    • JadePrimitivePair

      public JadePrimitivePair()
      Constructor for the JadePrimitivePair that assigns both first and second to null.
    • JadePrimitivePair

      public JadePrimitivePair(T first, V second)
      Takes in to generically typed parameters and assigns them to first and second.
      Parameters:
      first - first value
      second - second value
  • Method Details

    • getFirst

      public T getFirst()
      Gets the value in first.
      Returns:
      T
    • setFirst

      public void setFirst(T first)
      Sets the value of first.
      Parameters:
      first - first value
    • getSecond

      public V getSecond()
      Gets the value in second.
      Returns:
      V
    • setSecond

      public void setSecond(V second)
      Sets the value of second.
      Parameters:
      second - second value