Class Trio<A,B,C>

java.lang.Object
frc.spectrumLib.util.Trio<A,B,C>
Type Parameters:
A - The first object's type.
B - The second object's type.
C - The second object's type.

public class Trio<A,B,C> extends Object
Represents a trio of three objects.
  • Constructor Details

    • Trio

      public Trio(A first, B second, C third)
      Constructs a pair.
      Parameters:
      first - The first object.
      second - The second object.
      third - The third object
  • Method Details

    • getFirst

      public A getFirst()
      Returns the first object.
      Returns:
      The first object.
    • getSecond

      public B getSecond()
      Returns the second object.
      Returns:
      The second object.
    • getThird

      public C getThird()
    • of

      public static <A, B, C> Trio<A,B,C> of(A a, B b, C c)
      Returns a trio comprised of the three given objects.
      Type Parameters:
      A - The first object's type.
      B - The second object's type.
      C - The third object's type.
      Parameters:
      a - The first object.
      b - The second object.
      b - The second object.
      Returns:
      A trio comprised of the three given objects.