- java.lang.Object
-
- com.uddernetworks.newocr.utils.IntPair
-
public final class IntPair extends java.lang.ObjectA class that acts as anint-inttuple.- Since:
- January 12, 2019
-
-
Constructor Detail
-
IntPair
public IntPair(int key, int value)Creates a newIntPairwith the specified key and value.- Parameters:
key- the key.value- the value.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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.
-
-