com.simba.dsi.core.utilities
Class Variants

java.lang.Object
  extended by com.simba.dsi.core.utilities.Variants

public class Variants
extends java.lang.Object

Convenience class used to construct Variant objects.


Method Summary
static Variant makeInt16(short value)
          Make a variant with a short value.
static Variant makeInt32(int value)
          Make a variant with a int value.
static Variant makeInt64(long value)
          Make a variant with a long value.
static Variant makeNull()
          Make a variant with a null value.
static Variant makeUInt16(char value)
          Make a variant with a us-16 value.
static Variant makeUInt32(long value)
          Make a variant with a us-32 value.
static Variant makeUInt64(java.math.BigInteger value)
          Make a variant with a us-64 value.
static Variant makeUInt64(long value)
          Make a variant with a us-64 value.
static Variant makeWString(java.lang.String value)
          Make a variant with a String value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeInt16

public static Variant makeInt16(short value)
Make a variant with a short value.

Parameters:
value - The value.
Returns:
a variant with a short value.

makeInt32

public static Variant makeInt32(int value)
Make a variant with a int value.

Parameters:
value - The value.
Returns:
a variant with a int value.

makeInt64

public static Variant makeInt64(long value)
Make a variant with a long value.

Parameters:
value - The value.
Returns:
a variant with a long value.

makeUInt16

public static Variant makeUInt16(char value)
Make a variant with a us-16 value.

Parameters:
value -
Returns:
a variant with a u-16 value.

makeUInt32

public static Variant makeUInt32(long value)
                          throws NumericOverflowException
Make a variant with a us-32 value.

Parameters:
value - the value.
Returns:
a variant with a us-32 value.
Throws:
NumericOverflowException - If the value is out of range.

makeUInt64

public static Variant makeUInt64(long value)
                          throws NumericOverflowException
Make a variant with a us-64 value.

Parameters:
value - the value
Returns:
a variant with a us-64 value.
Throws:
NumericOverflowException - If the value is out of range.

makeUInt64

public static Variant makeUInt64(java.math.BigInteger value)
                          throws NumericOverflowException
Make a variant with a us-64 value.

Parameters:
value - the value
Returns:
a variant with a us-64 value.
Throws:
NumericOverflowException - If the value is out of range.

makeNull

public static Variant makeNull()
Make a variant with a null value.

Returns:
A variant with a null value

makeWString

public static Variant makeWString(java.lang.String value)
Make a variant with a String value.

Parameters:
value - the value.
Returns:
a variant with a String value.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.