Class Pair<T1,T2>

java.lang.Object
se.idsec.signservice.utils.Pair<T1,T2>
Type Parameters:
T1 - type of the first element
T2 - type of the second element

public class Pair<T1,T2> extends Object
Representation of a Pair.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • Pair

      public Pair(T1 first, T2 second)
      Constructor.
      Parameters:
      first - the first element
      second - the second element
  • Method Details

    • getFirst

      public T1 getFirst()
      Get the first element.
      Returns:
      the first element
    • getSecond

      public T2 getSecond()
      Gets the second element.
      Returns:
      the second element
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object