public class Types
extends java.lang.Object
TypeToken| Constructor and Description |
|---|
Types() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.reflect.TypeToken<?> |
deserialize(java.lang.String string)
Deserializes the given
String-representation in Base64 encoding
into a TypeToken. |
static boolean |
isAssignable(com.google.common.reflect.TypeToken<?> superType,
com.google.common.reflect.TypeToken<?> subType)
Returns whether the given 'candidate' superType is a super type of the
given 'candidate' subtype.
|
static java.lang.String |
serialize(com.google.common.reflect.TypeToken<?> typeToken)
Serializes a given
TypeToken into a String
representation. |
public static final com.google.common.reflect.TypeToken<?> deserialize(java.lang.String string)
String-representation in Base64 encoding
into a TypeToken.string - The String-representation to deserialize.TypeToken.public static final boolean isAssignable(com.google.common.reflect.TypeToken<?> superType,
com.google.common.reflect.TypeToken<?> subType)
superType - The 'candidate' superType.subType - The 'candidate' subType.true when the given 'candidate' superType is indeed
a super type of the given 'candidate' subType, false
otherwise.public static final java.lang.String serialize(com.google.common.reflect.TypeToken<?> typeToken)
TypeToken into a String
representation.typeToken - The TypeToken to serialize.TypeToken encoded in
Base64.Copyright (c) 2014 itemis AG and others. All rights reserved.