Class Pair<X,Y>

java.lang.Object
org.apache.iceberg.util.Pair<X,Y>
All Implemented Interfaces:
Serializable, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable

public class Pair<X,Y> extends Object implements org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, Serializable
See Also:
  • Method Details

    • of

      public static <X, Y> Pair<X,Y> of(X first, Y second)
    • put

      public void put(int i, Object v)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • get

      public Object get(int i)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • first

      public X first()
    • second

      public Y second()
    • toString

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

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object