Interface TypeInformation<S>

    • Method Detail

      • getGenericType

        Type getGenericType()
      • isCollectionLike

        boolean isCollectionLike()
        Returns whether the type can be considered a collection, which means it's a container of elements, e.g. a Collection and Array or anything implementing Iterable. If this returns true you can expect getComponentType() to return a non-null value.
        Returns:
      • getMapValueType

        TypeInformation<?> getMapValueType()
        Will return the type of the value in case the underlying type is a Map.
        Returns:
      • getType

        Class<S> getType()
        Returns the type of the property. Will resolve generics and the generic context of
        Returns:
      • getActualType

        TypeInformation<?> getActualType()
        Transparently returns the Map value type if the type is a Map, returns the component type if the type isCollectionLike() or the simple type if none of this applies.
        Returns:
      • getReturnType

        TypeInformation<?> getReturnType​(Method method)
        Returns a TypeInformation for the return type of the given Method. Will potentially resolve generics information against the current types type parameter bindings.
        Parameters:
        method - must not be null.
        Returns:
      • getSuperTypeInformation

        TypeInformation<?> getSuperTypeInformation​(Class<?> superType)
        Returns the TypeInformation for the given raw super type.
        Parameters:
        superType - must not be null.
        Returns:
        the TypeInformation for the given raw super type or null in case the current TypeInformation does not implement the given type.
      • isAssignableFrom

        boolean isAssignableFrom​(TypeInformation<?> target)
        Returns if the current TypeInformation can be safely assigned to the given one. Mimics semantics of Class.isAssignableFrom(Class) but takes generics into account. Thus it will allow to detect that a List<Long> is assignable to List<? extends Number>.
        Parameters:
        target -
        Returns: