public enum DataConverterByteArray extends java.lang.Enum<DataConverterByteArray> implements IDataConverter<CastResult<byte[]>>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
CastResult<byte[]> |
fromBool(boolean value) |
CastResult<byte[]> |
fromByte(byte value) |
CastResult<byte[]> |
fromByteArray(byte[] value) |
CastResult<byte[]> |
fromDouble(double value) |
CastResult<byte[]> |
fromFloat(float value) |
CastResult<byte[]> |
fromInt(int value) |
CastResult<byte[]> |
fromIntArray(int[] value) |
CastResult<byte[]> |
fromList(java.util.List<IData> values) |
CastResult<byte[]> |
fromLong(long value) |
CastResult<byte[]> |
fromMap(java.util.Map<java.lang.String,IData> values) |
CastResult<byte[]> |
fromShort(short value) |
CastResult<byte[]> |
fromString(java.lang.String value) |
static DataConverterByteArray |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataConverterByteArray[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataConverterByteArray INSTANCE
public static DataConverterByteArray[] values()
for (DataConverterByteArray c : DataConverterByteArray.values()) System.out.println(c);
public static DataConverterByteArray valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic CastResult<byte[]> fromBool(boolean value)
fromBool in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromByte(byte value)
fromByte in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromShort(short value)
fromShort in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromInt(int value)
fromInt in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromLong(long value)
fromLong in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromFloat(float value)
fromFloat in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromDouble(double value)
fromDouble in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromString(java.lang.String value)
fromString in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromList(java.util.List<IData> values)
fromList in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromMap(java.util.Map<java.lang.String,IData> values)
fromMap in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromByteArray(byte[] value)
fromByteArray in interface IDataConverter<CastResult<byte[]>>public CastResult<byte[]> fromIntArray(int[] value)
fromIntArray in interface IDataConverter<CastResult<byte[]>>