Interface PojoTypeModel<T>

    • Method Detail

      • name

        String name()
        A human-readable name for this type.
      • rawType

        PojoRawTypeModel<? super T> rawType()
        A representation of the closest parent Java Class for this type.
      • castTo

        <U> Optional<PojoTypeModel<? extends U>> castTo​(Class<U> target)
        Type Parameters:
        U - The type to cast to.
        target - The type to cast to.
        A new type model, representing the current type cast to the given type, or Optional.empty() if casting is not supported. The type model will retain as much contextual type information as possible (type arguments, ...), so casting List<Integer> to Collection for example would return Collection<Integer>.