- java.lang.Object
-
- com.uddernetworks.newocr.utils.IntPair
-
public final class IntPair extends java.lang.Object
A class that acts as anint
-int
tuple.- Since:
- January 12, 2019
-
-
Constructor Detail
-
IntPair
public IntPair(int key, int value)
Creates a newIntPair
with the specified key and value.- Parameters:
key
- the key.value
- the value.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getKey
public int getKey()
Gets thisIntPair
's key.- Returns:
- the key as an
int
.
-
setKey
public void setKey(int key)
Sets thisIntPair
's key.- Parameters:
key
- The key as anint
.
-
getValue
public int getValue()
Gets thisIntPair
's value.- Returns:
- the value as an
int
.
-
setValue
public void setValue(int value)
Sets thisIntPair
's value.- Parameters:
value
- The value as anint
.
-
-