Class Pair<T,​E>


  • public class Pair<T,​E>
    extends java.lang.Object
    The type holding pair of objects.
    Version:
    1.0
    Author:
    Erhan Bagdemir
    • Field Summary

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

      Constructors 
      Constructor Description
      Pair​(T first, E second)
      Constructs a pair of objects.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • first

        public T first
      • second

        public E second
    • Constructor Detail

      • Pair

        public Pair​(T first,
                    E second)
        Constructs a pair of objects.
        Parameters:
        first - The first value.
        second - The second value.