Class Pair<S,​T>

  • Type Parameters:
    S - first element
    T - second element

    public class Pair<S,​T>
    extends java.lang.Object
    Yet another implementation for Pair. You'd figure Java would have this out of the box. Used in the launch bar mainly for modeling descriptor and target id's which includ both type id and the object name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private S first  
      private T second  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(S first, T second)  
    • Field Detail

      • first

        private final S first
      • second

        private final T second
    • Constructor Detail

      • Pair

        public Pair​(S first,
                    T second)
    • Method Detail

      • getFirst

        public S getFirst()
      • getSecond

        public T getSecond()
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object