File-By-File
Trio

Trio

A generic class for storing a trio of objects. This is a simple utility class that holds three values of potentially different types, A, B, and C.

Type Parameters

  • <A>: The type of the first element in the trio.
  • <B>: The type of the second element in the trio.
  • <C>: The type of the third element in the trio.

Methods

Trio(A a, B b, C c)

Constructs a new Trio with the specified first (a), second (b), and third (c) elements.

Trio(Trio<A, B, C> trio)

Constructs a new Trio by copying the elements from an existing trio.

getA()

Returns the first element of the trio.

getB()

Returns the second element of the trio.

getC()

Returns the third element of the trio.