Class IdPair<L,R>

java.lang.Object
org.apache.calcite.sql.util.IdPair<L,R>
Type Parameters:
L - Left type
R - Right type

public class IdPair<L,R> extends Object
Similar to Pair but identity is based on identity of values.

Also, uses hashCode algorithm of List, not Map.Entry.hashCode().

  • Constructor Details

    • IdPair

      protected IdPair(L left, R right)
  • Method Details

    • of

      public static <L, R> IdPair<L,R> of(L left, R right)
      Creates an IdPair.
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object