Package org.eclipse.gef.common.reflect
Class Types
java.lang.Object
org.eclipse.gef.common.reflect.Types
Utilities around
TypeToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final TypeToken<?>
deserialize
(String string) static final boolean
isAssignable
(TypeToken<?> superType, TypeToken<?> subType) Returns whether the given 'candidate' superType is a super type of the given 'candidate' subtype.static final String
-
Constructor Details
-
Types
public Types()
-
-
Method Details
-
deserialize
-
isAssignable
Returns whether the given 'candidate' superType is a super type of the given 'candidate' subtype. This is replacement for TypeToken.isAssignableFrom(TypeToken), which has been deprecated and replaced by TypeToken.isSuperTypeOf(TypeToken) in Google Guava 19.0.0. As we want to support various Google Guava versions from 15.0.0 onwards, this methods delegates to the appropriate implementation using reflection.- Parameters:
superType
- The 'candidate' superType.subType
- The 'candidate' subType.- Returns:
true
when the given 'candidate' superType is indeed a super type of the given 'candidate' subType,false
otherwise.
-
serialize
-