polyglot.ext.pao.runtime
Class Primitive

java.lang.Object
  extended by polyglot.ext.pao.runtime.Primitive
Direct Known Subclasses:
Boolean, Double, Long

public abstract class Primitive
extends java.lang.Object

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

Primitive

public Primitive()
Method Detail

equals

public 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. Boxed primitives are compared by their primitive value, not by identity.

Parameters:
o - object to compare to p
p - object to compare to o
Returns:
true if o == p or if o and p are instances of Primitive and box the same primitive value.