Class CustomType<T>

Type Parameters:
T - the type
All Implemented Interfaces:
GenericType<T>, Type<T>

@Immutable public abstract class CustomType<T> extends GenericTypeBase<T>
A custom type class.

The class must not be representable by a known type, and must not be an array.

  • Constructor Details

    • CustomType

      public CustomType()
  • Method Details

    • of

      public static <T> CustomType<T> of(Class<T> clazz)
    • clazz

      @Parameter public abstract Class<T> clazz()
      Description copied from interface: Type
      The class representing this type.
      Returns:
      the class
    • walk

      public final <R> R walk(GenericType.Visitor<R> visitor)