Class Pair<F,S>

java.lang.Object
com.flir.thermalsdk.utils.Pair<F,S>

public final class Pair<F,S> extends Object
Wrapper for Pair object.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final F
     
    final S
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pair(F first, S second)
    Constructor for a Pair.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks the two objects for equality by delegating to their respective Object.equals(Object) methods.
    int
    Compute a hash code using the hash codes of the underlying objects
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • first

      public final F first
    • second

      public final S second
  • Constructor Details

    • Pair

      public Pair(F first, S second)
      Constructor for a Pair.
      Parameters:
      first - the first object in the Pair
      second - the second object in the pair
  • Method Details

    • equals

      public boolean equals(Object o)
      Checks the two objects for equality by delegating to their respective Object.equals(Object) methods.
      Overrides:
      equals in class Object
      Parameters:
      o - the Pair to which this one is to be checked for equality
      Returns:
      true if the underlying objects of the Pair are both considered equal
    • hashCode

      public int hashCode()
      Compute a hash code using the hash codes of the underlying objects
      Overrides:
      hashCode in class Object
      Returns:
      a hashcode of the Pair
    • toString

      public String toString()
      Overrides:
      toString in class Object