public class Pair
extends java.lang.Object
implements java.util.Map.Entry<java.lang.Integer,java.lang.Integer>, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
java.lang.Integer |
first |
java.lang.Integer |
second |
Constructor and Description |
---|
Pair(java.lang.Integer first,
java.lang.Integer second) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getKey() |
java.lang.Integer |
getValue() |
java.lang.Integer |
setValue(java.lang.Integer value) |
public java.lang.Integer getKey()
getKey
in interface java.util.Map.Entry<java.lang.Integer,java.lang.Integer>
public java.lang.Integer getValue()
getValue
in interface java.util.Map.Entry<java.lang.Integer,java.lang.Integer>
public java.lang.Integer setValue(java.lang.Integer value)
setValue
in interface java.util.Map.Entry<java.lang.Integer,java.lang.Integer>
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Map.Entry<java.lang.Integer,java.lang.Integer>
equals
in class java.lang.Object