Class Pair<F,S>

java.lang.Object
xyz.dynxsty.dih4jda.util.Pair<F,S>
Type Parameters:
F - The first value.
S - The second value.

public class Pair<F,S> extends Object
A Pair of two elements.
Since:
v1.5.2
  • Constructor Details

    • Pair

      public Pair(@Nonnull F first, @Nonnull S second)
      Creates a new Pair of to Objects.
      Parameters:
      first - the first Object.
      second - the second Object.
  • Method Details

    • getFirst

      @Nonnull public F getFirst()
      Gets you the Object that was defined as first.
      Returns:
      the first Object.
    • getSecond

      @Nonnull public S getSecond()
      Gets you the Object that was defined as second.
      Returns:
      the second Object.