S-PLUS Connect/Java v1.0

com.insightful.splus.util
Class JavaPrimitive

java.lang.Object
  extended bycom.insightful.splus.util.JavaPrimitive
All Implemented Interfaces:
Serializable

public class JavaPrimitive
extends Object
implements Serializable

Wrapper for a single primitive Java value. This is used with ClassUtilities.invokeStaticMethod() to pass a primitive value and its class as arguments. The class cannot be passed in the Class [] array as an object such as Double.TYPE because RMI generates an exception in trying to serialize the class object.

See Also:
Serialized Form

Constructor Summary
JavaPrimitive(boolean value)
           
JavaPrimitive(byte value)
           
JavaPrimitive(char value)
           
JavaPrimitive(double value)
           
JavaPrimitive(float value)
           
JavaPrimitive(int value)
           
JavaPrimitive(long value)
           
JavaPrimitive(short value)
           
 
Method Summary
 Class getPrimitiveClass()
          Get the class of the primitive such as Double.TYPE.
 Object getWrappedValue()
          Get the value as an Object such as Double.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaPrimitive

public JavaPrimitive(boolean value)

JavaPrimitive

public JavaPrimitive(byte value)

JavaPrimitive

public JavaPrimitive(char value)

JavaPrimitive

public JavaPrimitive(short value)

JavaPrimitive

public JavaPrimitive(int value)

JavaPrimitive

public JavaPrimitive(long value)

JavaPrimitive

public JavaPrimitive(float value)

JavaPrimitive

public JavaPrimitive(double value)
Method Detail

getWrappedValue

public Object getWrappedValue()
Get the value as an Object such as Double.


getPrimitiveClass

public Class getPrimitiveClass()
Get the class of the primitive such as Double.TYPE.


S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.