Class Triple<A,B,C>

java.lang.Object
com.pnfsoftware.jeb.util.base.Triple<A,B,C>
Type Parameters:
A - the first element
B - the second element
C - the third element

@Ser public class Triple<A,B,C> extends Object
Handy class holding three typed elements. Null values are allowed.
See Also:
  • Constructor Details

    • Triple

      public Triple(A a, B b, C c)
      Create a triple.
      Parameters:
      a - first element
      b - second element
      c - third element
  • Method Details

    • getFirst

      public A getFirst()
      Returns:
      the first element
    • setFirst

      public void setFirst(A a)
      Parameters:
      a - first element
    • getSecond

      public B getSecond()
      Returns:
      the second element
    • setSecond

      public void setSecond(B b)
      Parameters:
      b - second element
    • getThird

      public C getThird()
      Returns:
      the third element
    • setThird

      public void setThird(C c)
      Parameters:
      c - third element
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object