Class Triple<A,B,C>

java.lang.Object
de.eldoria.eldoutilities.container.Triple<A,B,C>
Type Parameters:
A - value A
B - value B
C - value C

public class Triple<A,B,C> extends Object
Contains a immutable triple of three values.
Since:
1.0.0
  • Field Details

    • first

      public final A first
    • second

      public final B second
    • third

      public final C third
  • Constructor Details

    • Triple

      public Triple(A first, B second, C third)
      Create a new tripple.
      Parameters:
      first - first value
      second - second value
      third - third value
  • Method Details

    • of

      public static <X, Y, Z> Triple<X,Y,Z> of(X x, Y y, Z z)
      Create a new tripple.
      Type Parameters:
      X - type of first value
      Y - type of second value
      Z - type of third value
      Parameters:
      x - first value
      y - second value
      z - third value
      Returns:
      new tripple
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object