Class Triplet<A,​B,​C>

java.lang.Object
oshi.util.tuples.Triplet<A,​B,​C>
Type Parameters:
A - Type of the first element
B - Type of the second element
C - Type of the third element

@ThreadSafe public class Triplet<A,​B,​C> extends Object
Convenience class for returning multiple objects from methods.
  • Constructor Details

    • Triplet

      public Triplet(A a, B b, C c)
      Create a triplet and store three objects.
      Parameters:
      a - the first object to store
      b - the second object to store
      c - the third object to store
  • Method Details

    • getA

      public final A getA()
      Returns the first stored object.
      Returns:
      first object stored
    • getB

      public final B getB()
      Returns the second stored object.
      Returns:
      second object stored
    • getC

      public final C getC()
      Returns the third stored object.
      Returns:
      third object stored