Package com.tick42.glue.core
Interface ReifiedType<T>
- Type Parameters:
T- the type of reified type
- All Known Implementing Classes:
ReifiedType.Capture
public interface ReifiedType<T>
Utility to capture generic types.
Instances are created with (usually anonymous) sub-classing ReifiedType.Capture:
new ReifiedType.Capture<Map<String, Object>>() {}
For non-parameterized types there is convenience of(Class) method that can be used:
ReifiedType.of(String.class)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classCapture a generic type using (usually anonymous) sub-classing. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault Class<?>getType()default booleanisSubTypeOf(Class<?> type) default booleanisSuperTypeOf(Class<?> type) static <T> ReifiedType<T>static ReifiedType<?>
-
Field Details
-
OBJECT_MAP
-
-
Method Details
-
of
-
of
-
isSuperTypeOf
-
isSubTypeOf
-
getType
Type getType() -
getRawType
-