public class Pair<X,Y>
extends java.lang.Object
implements org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
X |
first() |
java.lang.Object |
get(int i) |
org.apache.avro.Schema |
getSchema() |
int |
hashCode() |
static <X,Y> Pair<X,Y> |
of(X first,
Y second) |
void |
put(int i,
java.lang.Object v) |
Y |
second() |
java.lang.String |
toString() |
public static <X,Y> Pair<X,Y> of(X first, Y second)
public void put(int i, java.lang.Object v)
put
in interface org.apache.avro.generic.IndexedRecord
public java.lang.Object get(int i)
get
in interface org.apache.avro.generic.IndexedRecord
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public X first()
public Y second()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object