Class Pair<T,​U>

java.lang.Object
io.opentimeline.util.Pair<T,​U>
Type Parameters:
T - type for first value
U - type for second value

public class Pair<T,​U>
extends java.lang.Object
A generic class that holds a pair of values.
  • Constructor Summary

    Constructors 
    Constructor Description
    Pair​(T first, U second)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    T getFirst()  
    U getSecond()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Pair

      public Pair​(T first, U second)
  • Method Details

    • getFirst

      public T getFirst()
    • getSecond

      public U getSecond()
    • equals

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object