Package io.dapr.utils
Class TypeRef<T>
java.lang.Object
io.dapr.utils.TypeRef<T>
- Type Parameters:
T
- Type to be deserialized.
public abstract class TypeRef<T> extends Object
Used to reference a type.
Usage: new TypeRef<MyClass>(){}
-
Field Summary
Fields Modifier and Type Field Description static TypeRef<Boolean>
BOOLEAN
static TypeRef<Byte>
BYTE
static TypeRef<byte[]>
BYTE_ARRAY
static TypeRef<Character>
CHAR
static TypeRef<Double>
DOUBLE
static TypeRef<Float>
FLOAT
static TypeRef<Integer>
INT
static TypeRef<int[]>
INT_ARRAY
static TypeRef<Long>
LONG
static TypeRef<String>
STRING
static TypeRef<String[]>
STRING_ARRAY
static TypeRef<Void>
VOID
-
Constructor Summary
Constructors Constructor Description TypeRef()
Constructor. -
Method Summary
-
Field Details
-
Constructor Details
-
TypeRef
public TypeRef()Constructor.
-
-
Method Details
-
getType
Gets the type referenced.- Returns:
- type referenced.
-
get
Creates a reference to a given class type.- Type Parameters:
T
- Type to be referenced.- Parameters:
clazz
- Class type to be referenced.- Returns:
- Class type reference.
-
get
Creates a reference to a given class type.- Type Parameters:
T
- Type to be referenced.- Parameters:
type
- Type to be referenced.- Returns:
- Class type reference.
-