public class ValueFactory
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ValueFactory()
Hide the default constructor to forbid instantiation of this class
|
Modifier and Type | Method and Description |
---|---|
static ArrayValue |
emptyArray() |
static MapValue |
emptyMap() |
static ArrayValue |
newArray(Value... array) |
static ArrayValue |
newArrayFrom(java.util.List<? extends Value> list) |
static IntegerValue |
newBigInteger(java.math.BigInteger v) |
static BinaryValue |
newBinary(byte[] b) |
static BinaryValue |
newBinary(byte[] b,
int off,
int len) |
static BinaryValue |
newBinary(java.nio.ByteBuffer bb) |
static BooleanValue |
newBoolean(boolean v) |
static IntegerValue |
newByte(byte v) |
static FloatValue |
newDouble(double v) |
static ExtendedValue |
newExtendedValue(int extType,
byte[] extData) |
static ExtendedValue |
newExtendedValue(int extType,
java.nio.ByteBuffer extData) |
static FloatValue |
newFloat(float v) |
static IntegerValue |
newInt(int v) |
static IntegerValue |
newLong(long v) |
static <K extends Value,V extends Value> |
newMap(java.util.Map<K,V> map) |
static MapValue |
newMap(Value[] keyValueSequence) |
static StringValue |
newRawString(byte[] b) |
static StringValue |
newRawString(byte[] b,
int off,
int len) |
static StringValue |
newRawString(java.nio.ByteBuffer bb) |
static IntegerValue |
newShort(short v) |
static StringValue |
newString(java.lang.String s) |
static NilValue |
nilValue() |
protected ValueFactory()
public static NilValue nilValue()
public static BooleanValue newBoolean(boolean v)
public static IntegerValue newByte(byte v)
public static IntegerValue newShort(short v)
public static IntegerValue newInt(int v)
public static IntegerValue newLong(long v)
public static IntegerValue newBigInteger(java.math.BigInteger v)
public static FloatValue newFloat(float v)
public static FloatValue newDouble(double v)
public static BinaryValue newBinary(byte[] b)
public static BinaryValue newBinary(byte[] b, int off, int len)
public static BinaryValue newBinary(java.nio.ByteBuffer bb)
public static StringValue newString(java.lang.String s)
public static StringValue newRawString(byte[] b)
public static StringValue newRawString(byte[] b, int off, int len)
public static StringValue newRawString(java.nio.ByteBuffer bb)
public static ArrayValue newArrayFrom(java.util.List<? extends Value> list)
public static ArrayValue newArray(Value... array)
public static ArrayValue emptyArray()
public static MapValue emptyMap()
public static ExtendedValue newExtendedValue(int extType, byte[] extData)
public static ExtendedValue newExtendedValue(int extType, java.nio.ByteBuffer extData)