Package gaiasky.util

Class Pair<A,​B>

  • Type Parameters:
    A - First type
    B - Second type

    public class Pair<A,​B>
    extends java.lang.Object
    Simple implementation of a pair of objects.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(A first, B second)  
    • Constructor Detail

      • Pair

        public Pair​(A first,
                    B second)
    • Method Detail

      • 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
      • 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)