Class SerializationHintsPredicates

java.lang.Object
org.springframework.aot.hint.predicate.SerializationHintsPredicates

@Deprecated(since="7.0.6", forRemoval=true) public class SerializationHintsPredicates extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Generator of SerializationHints predicates, testing whether the given hints match the expected behavior for serialization.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • onType

      public Predicate<RuntimeHints> onType(Class<?> type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return a predicate that checks whether a serialization hint is registered for the given type.
      Parameters:
      type - the type to check
      Returns:
      the RuntimeHints predicate
      See Also:
    • onType

      public Predicate<RuntimeHints> onType(TypeReference typeReference)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return a predicate that checks whether a serialization hint is registered for the given type reference.
      Parameters:
      typeReference - the type to check
      Returns:
      the RuntimeHints predicate
      See Also: