Class Pair<T1,T2>

java.lang.Object
org.tweetyproject.arg.adf.util.Pair<T1,T2>

public final class Pair<T1,T2> extends Object
Author:
Mathias Hofer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final T1
     
    final T2
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pair(T1 first, T2 second)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    static <T1, T2> Pair<T1,T2>
    of(T1 a, T2 b)
     

    Methods inherited from class java.lang.Object

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

    • first

      public final T1 first
    • second

      public final T2 second
  • Constructor Details

    • Pair

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

    • of

      public static <T1, T2> Pair<T1,T2> of(T1 a, T2 b)
    • hashCode

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

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