com.insightful.splus.util
Class JavaPrimitive
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.
Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.