public interface DataTypes
An instance can be obtained by calling
Diffusion.dataTypes()
.
Modifier and Type | Method and Description |
---|---|
BinaryDataType |
binary()
Data type that supports arbitrary binary data.
|
<V> DataType<? extends V> |
getByClass(Class<V> valueClass)
Obtain a
DataType implementation by class. |
DataType<?> |
getByName(String typeName)
Obtain a
DataType implementation by type name. |
JSONDataType |
json()
JSON is "JavaScript Object Notation", a lightweight data-interchange
format.
|
JSONDataType json()
BinaryDataType binary()
DataType<?> getByName(String typeName)
DataType
implementation by type name.typeName
- the name, as returned by DataType.getTypeName()
IllegalArgumentException
- if there is no data type with the
name typeName
<V> DataType<? extends V> getByClass(Class<V> valueClass)
DataType
implementation by class.valueClass
- the classIllegalArgumentException
- if there is no data type that supports
values of class valueClass
IllegalArgumentException
- if there is more than one data type that
supports values of the given class, but none is preferredCopyright © 2016 Push Technology Ltd. All Rights Reserved.