Class Pair<F,​S>

java.lang.Object
net.seesharpsoft.commons.collection.Pair<F,​S>

public class Pair<F,​S>
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Pair​(F first, S second)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    F getFirst()  
    S getSecond()  
    int hashCode()  
    static <F,​ S> Pair<F,​S> of​(F first, S second)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • Pair

      public Pair​(F first, S second)
  • Method Details

    • of

      public static <F,​ S> Pair<F,​S> of​(F first, S second)
    • getFirst

      public F getFirst()
    • getSecond

      public S getSecond()
    • toString

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

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

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