Class Triple<P,S,T>

java.lang.Object
games.stendhal.client.Triple<P,S,T>
Type Parameters:
P - type of first object
S - type of second object
T - type of third object

public final class Triple<P,S,T> extends Object
A container for three objects.
  • Constructor Details

    • Triple

      public Triple(P prim, S sec, T third)
      Create a triple.
      Parameters:
      prim - first object
      sec - second object
      third - third object
  • Method Details

    • getFirst

      public P getFirst()
      Retrieves the first object.
    • getSecond

      public S getSecond()
      Retrieves the second object.
    • getThird

      public T getThird()
      Retrieves the third object.
    • hashCode

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

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