Class Pair<A,B>

java.lang.Object
com.atlassian.bamboo.utils.Pair<A,B>
Type Parameters:
A - first item of pair
B - second item of pair

public final class Pair<A,B> extends Object
A simple Pair class
  • Field Details

    • first

      public final A first
    • second

      public final B second
  • Constructor Details

  • Method Details

    • getFirst

      @Nullable public A getFirst()
    • getSecond

      @Nullable public B getSecond()
    • compareTo

      public int compareTo(Pair obj)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      @NotNull public static <A, B> @NotNull Pair<A,B> make(@Nullable A first, @Nullable B second)
    • pairOfComparableComparator

      public static <T extends Comparable, U extends Comparable> Comparator<Pair<T,U>> pairOfComparableComparator()
    • toString

      public String toString()
      Overrides:
      toString in class Object