Class Pair<T,U>

java.lang.Object
io.github.syst3ms.skriptparser.util.Pair<T,U>
Type Parameters:
T - type of the first value
U - type of the second value

public class Pair<T,U> extends Object
A simple pair of two values.
  • Constructor Details

    • Pair

      public Pair(T first, U second)
  • Method Details

    • getFirst

      public T getFirst()
      Retrieves the first element
      Returns:
      the first element
    • getSecond

      public U getSecond()
      Retrieves the second element
      Returns:
      the second element
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object