Class Pair<A,B>

java.lang.Object
aQute.libg.tuple.Pair<A,B>
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
ComparablePair, MergedRequirement.FilterEffectivePair

public class Pair<A,B> extends Object implements Serializable, Cloneable
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • first

      private final A first
    • second

      private final B second
  • Constructor Details

    • Pair

      public Pair(A first, B second)
  • Method Details

    • newInstance

      public static <A, B> Pair<A,B> newInstance(A first, B second)
    • getFirst

      public A getFirst()
    • getSecond

      public B getSecond()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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

      public Pair<A,B> clone()
      Overrides:
      clone in class Object