Class NativeArrayType<T,ComponentType>

Type Parameters:
T - the array type representing this
ComponentType - the component type
All Implemented Interfaces:
ArrayType<T,ComponentType>, GenericType<T>, Type<T>

@Immutable public abstract class NativeArrayType<T,ComponentType> extends ArrayTypeBase<T,ComponentType>
A java native array type.
  • Constructor Details

    • NativeArrayType

      public NativeArrayType()
  • Method Details

    • find

      public static <T> NativeArrayType<T,?> find(Class<T> arrayType)
      Description copied from interface: Type
      Finds the known type, or else creates the relevant native array type or custom type.
      Type Parameters:
      T - the generic type of clazz
      Parameters:
      arrayType - the class
      Returns:
      the type
    • of

      public static <T, ComponentType> NativeArrayType<T,ComponentType> of(Class<T> arrayType, Type<ComponentType> componentType)
    • toArrayType

      public static <ComponentType> NativeArrayType<ComponentType[],ComponentType> toArrayType(GenericType<ComponentType> type)
    • clazz

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

      @Parameter public abstract Type<ComponentType> componentType()
      Description copied from interface: ArrayType
      The component type.
      Returns:
      the component type
    • walk

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