Class Pair<K,V>

java.lang.Object
org.graph4j.util.Pair<K,V>
Type Parameters:
K - the type of the first element.
V - the type of the second element

public class Pair<K,V> extends Object
Utility class describing a generic pair of values.
Author:
Cristian Frăsinaru
  • Constructor Details

    • Pair

      public Pair(K first, V second)
  • Method Details

    • first

      public K first()
    • second

      public V second()
    • 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