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 Classes Modifier and Type Interface Description static classReifiedType.Capture<T>Capture a generic type using (usually anonymous) sub-classing.
-
Field Summary
Fields Modifier and Type Field Description static ReifiedType<Map<String,Object>>OBJECT_MAP
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Class<?>getRawType()TypegetType()default booleanisSubTypeOf(Class<?> type)default booleanisSuperTypeOf(Class<?> type)static <T> ReifiedType<T>of(Class<T> type)static ReifiedType<?>of(Type type)
-
-
-
Field Detail
-
OBJECT_MAP
static final ReifiedType<Map<String,Object>> OBJECT_MAP
-
-
Method Detail
-
of
static <T> ReifiedType<T> of(Class<T> type)
-
of
static ReifiedType<?> of(Type type)
-
isSuperTypeOf
default boolean isSuperTypeOf(Class<?> type)
-
isSubTypeOf
default boolean isSubTypeOf(Class<?> type)
-
getType
Type getType()
-
getRawType
default Class<?> getRawType()
-
-