Modifier and Type | Class and Description |
---|---|
static class |
MapInt.Int.Comp
Comparator: it simply compares the wrapped values.
|
Constructor and Description |
---|
Int()
Constructs a new wrapper with value -1.
|
Int(int val)
Constructs a new wrapper for the given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Equality test: satisfied if both
Int s have the same value. |
int |
hashCode()
Returns the hash code for this wrapper, in fact, its value.
|
int |
intValue()
Returns this wrapper's value.
|
void |
setIntValue(int val)
Sets this wrapper's value to the given value.
|
public Int()
public Int(int val)
public void setIntValue(int val)
public int intValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
Int
s have the same value.equals
in class java.lang.Object