Package gaiasky.util

Class Trio<A,B,C>

java.lang.Object
gaiasky.util.Trio<A,B,C>
Type Parameters:
A - First object type.
B - Second object type.
C - Third object type.

public class Trio<A,B,C> extends Object
A simple data structure that holds three objects.
  • Constructor Details

    • Trio

      public Trio(A first, B second, C third)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFirst

      public A getFirst()
    • setFirst

      public void setFirst(A first)
    • getSecond

      public B getSecond()
    • setSecond

      public void setSecond(B second)
    • getThird

      public C getThird()
    • setThird

      public void setThird(C third)