|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.ext.pao.runtime.Primitive
public abstract class Primitive
Boxed primitives. This is the abstract superclass of the classes used to box primitive values at runtime.
Constructor Summary | |
---|---|
Primitive()
|
Method Summary | |
---|---|
static boolean |
equals(java.lang.Object o,
java.lang.Object p)
Method used to implement o == p when o or
p could be a boxed primitive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Primitive()
Method Detail |
---|
public static boolean equals(java.lang.Object o, java.lang.Object p)
o == p
when o
or
p
could be a boxed primitive. Boxed primitives are
compared by their primitive value, not by identity.
o
- object to compare to pp
- object to compare to o
o == p
or if o and p are instances of
Primitive
and box the same primitive value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |