Package gaiasky.util

Class Pair<A,B>

java.lang.Object
gaiasky.util.Pair<A,B>
Type Parameters:
A - The first object type.
B - The second object type.

public class Pair<A,B> extends Object
Data type that holds two objects.
  • Constructor Details

    • Pair

      public Pair(A first, B second)
  • 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
    • set

      public void set(A first, B second)
    • getFirst

      public A getFirst()
    • setFirst

      public void setFirst(A first)
    • getSecond

      public B getSecond()
    • setSecond

      public void setSecond(B second)