|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjautil.MapInt.Int
public static class MapInt.Int
Wrapper class for an integer, acting a MapInt key.
| Nested Class Summary | |
|---|---|
static class |
MapInt.Int.Comp
Comparator: it simply compares the wrapped values. |
| Constructor Summary | |
|---|---|
MapInt.Int()
Constructs a new wrapper with value -1. |
|
MapInt.Int(int val)
Constructs a new wrapper for the given value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Equality test: satisfied if both Ints 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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapInt.Int()
public MapInt.Int(int val)
| Method Detail |
|---|
public void setIntValue(int val)
public int intValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Ints have the same value.
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||