Package gaiasky.util

Class Trio<A,​B,​C>

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

public class Trio<A,​B,​C>
extends java.lang.Object
Simple impelementation of a trio of objects.
  • Constructor Summary

    Constructors
    Constructor Description
    Trio​(A first, B second, C third)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object other)  
    A getFirst()  
    B getSecond()  
    C getThird()  
    int hashCode()  
    void setFirst​(A first)  
    void setSecond​(B second)  
    void setThird​(C third)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Trio

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

    • hashCode

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

      public boolean equals​(java.lang.Object other)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.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)