Class AbstractPojoGenericTypeModel<T>

    • Constructor Detail

      • AbstractPojoGenericTypeModel

        protected AbstractPojoGenericTypeModel​(PojoRawTypeModel<? super T> rawTypeModel)
    • Method Detail

      • typeArgument

        public Optional<? extends PojoGenericTypeModel<?>> typeArgument​(Class<?> rawSuperType,
                                                                        int typeParameterIndex)
        Specified by:
        typeArgument in interface PojoGenericTypeModel<T>
        Parameters:
        rawSuperType - The supertype to resolve type parameters for
        typeParameterIndex - The index of the type parameter to resolve
        Returns:
        The model for the type argument for the type parameter defined in rawSuperType at index typeParameterIndex, or an empty optional if the current type does not extend rawSuperType. Implementations may decide to return a model of the raw type argument, or to retain generics information.
      • arrayElementType

        public Optional<? extends PojoGenericTypeModel<?>> arrayElementType()
        Specified by:
        arrayElementType in interface PojoGenericTypeModel<T>
        Returns:
        The model for the array element type, or an empty optional if the current type is not an array type. Implementations may decide to return a model of the raw array element type, or to retain generics information.