Class Pair<S,T>

java.lang.Object
io.micronaut.openapi.visitor.Pair<S,T>
Type Parameters:
S - first object
T - second object

public final class Pair<S,T> extends Object
Helper class for handling two values.
  • Field Details

  • Method Details

    • of

      public static <S, T> Pair<S,T> of(S first, T second)
    • getFirst

      public S getFirst()
    • getSecond

      public T getSecond()
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object