public final class ValueFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ValueFactory.MapBuilder |
Modifier and Type | Method and Description |
---|---|
static ImmutableArrayValue |
emptyArray() |
static ImmutableMapValue |
emptyMap() |
static ImmutableArrayValue |
newArray(java.util.List<? extends Value> list) |
static ImmutableArrayValue |
newArray(Value... array) |
static ImmutableArrayValue |
newArray(Value[] array,
boolean omitCopy) |
static ImmutableBinaryValue |
newBinary(byte[] b) |
static ImmutableBinaryValue |
newBinary(byte[] b,
boolean omitCopy) |
static ImmutableBinaryValue |
newBinary(byte[] b,
int off,
int len) |
static ImmutableBinaryValue |
newBinary(byte[] b,
int off,
int len,
boolean omitCopy) |
static ImmutableBooleanValue |
newBoolean(boolean v) |
static ImmutableExtensionValue |
newExtension(byte type,
byte[] data) |
static ImmutableFloatValue |
newFloat(double v) |
static ImmutableFloatValue |
newFloat(float v) |
static ImmutableIntegerValue |
newInteger(java.math.BigInteger v) |
static ImmutableIntegerValue |
newInteger(byte v) |
static ImmutableIntegerValue |
newInteger(int v) |
static ImmutableIntegerValue |
newInteger(long v) |
static ImmutableIntegerValue |
newInteger(short v) |
static MapValue |
newMap(java.util.Map.Entry<? extends Value,? extends Value>... pairs) |
static <K extends Value,V extends Value> |
newMap(java.util.Map<K,V> map) |
static ImmutableMapValue |
newMap(Value... kvs) |
static ImmutableMapValue |
newMap(Value[] kvs,
boolean omitCopy) |
static ValueFactory.MapBuilder |
newMapBuilder() |
static java.util.Map.Entry<Value,Value> |
newMapEntry(Value key,
Value value) |
static ImmutableNilValue |
newNil() |
static ImmutableStringValue |
newString(byte[] b) |
static ImmutableStringValue |
newString(byte[] b,
boolean omitCopy) |
static ImmutableStringValue |
newString(byte[] b,
int off,
int len) |
static ImmutableStringValue |
newString(byte[] b,
int off,
int len,
boolean omitCopy) |
static ImmutableStringValue |
newString(java.lang.String s) |
public static ImmutableNilValue newNil()
public static ImmutableBooleanValue newBoolean(boolean v)
public static ImmutableIntegerValue newInteger(byte v)
public static ImmutableIntegerValue newInteger(short v)
public static ImmutableIntegerValue newInteger(int v)
public static ImmutableIntegerValue newInteger(long v)
public static ImmutableIntegerValue newInteger(java.math.BigInteger v)
public static ImmutableFloatValue newFloat(float v)
public static ImmutableFloatValue newFloat(double v)
public static ImmutableBinaryValue newBinary(byte[] b)
public static ImmutableBinaryValue newBinary(byte[] b, boolean omitCopy)
public static ImmutableBinaryValue newBinary(byte[] b, int off, int len)
public static ImmutableBinaryValue newBinary(byte[] b, int off, int len, boolean omitCopy)
public static ImmutableStringValue newString(java.lang.String s)
public static ImmutableStringValue newString(byte[] b)
public static ImmutableStringValue newString(byte[] b, boolean omitCopy)
public static ImmutableStringValue newString(byte[] b, int off, int len)
public static ImmutableStringValue newString(byte[] b, int off, int len, boolean omitCopy)
public static ImmutableArrayValue newArray(java.util.List<? extends Value> list)
public static ImmutableArrayValue newArray(Value... array)
public static ImmutableArrayValue newArray(Value[] array, boolean omitCopy)
public static ImmutableArrayValue emptyArray()
public static <K extends Value,V extends Value> ImmutableMapValue newMap(java.util.Map<K,V> map)
public static ImmutableMapValue newMap(Value... kvs)
public static ImmutableMapValue newMap(Value[] kvs, boolean omitCopy)
public static ImmutableMapValue emptyMap()
@SafeVarargs public static MapValue newMap(java.util.Map.Entry<? extends Value,? extends Value>... pairs)
public static ValueFactory.MapBuilder newMapBuilder()
public static ImmutableExtensionValue newExtension(byte type, byte[] data)