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)
 
  • Field Details

  • Method Details

    • 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()