Class Pair<A,B>

java.lang.Object
pl.project13.core.util.Pair<A,B>

public class Pair<A,B> extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final @NonNull A
     
    final @NonNull B
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pair(A first, B second)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object o)
     
    int
     
    static <A, B> @NonNull Pair<A,B>
    of(A first, B second)
     
    @NonNull String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • first

      public final @NonNull A first
    • second

      public final @NonNull B second
  • Constructor Details

    • Pair

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

    • of

      public static <A, B> @NonNull Pair<A,B> of(A first, B second)
    • equals

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

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

      public @NonNull String toString()
      Overrides:
      toString in class Object