Top Description Constructors Methods
org.springframework.aot.hint.predicate

public Class SerializationHintsPredicates

extends Object
Class Inheritance
Imports
java.util.function.Predicate, org.springframework.aot.hint.RuntimeHints, .SerializationHints, .TypeReference, org.springframework.util.Assert

Generator of SerializationHints predicates, testing whether the given hints match the expected behavior for serialization.
Author
Stephane Nicoll
Since
6.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Predicate<RuntimeHints>

Returns:

the RuntimeHints predicate
onType
(Class<?>
the type to check
type
)

Return a predicate that checks whether a serialization hint is registered for the given type.

public Predicate<RuntimeHints>

Returns:

the RuntimeHints predicate
onType
(TypeReference
the type to check
typeReference
)

Return a predicate that checks whether a serialization hint is registered for the given type reference.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SerializationHintsPredicatesback to summary
pack-priv SerializationHintsPredicates()

Method Detail

onTypeback to summary
public Predicate<RuntimeHints> onType(Class<?> type)

Return a predicate that checks whether a serialization hint is registered for the given type.

Parameters
type:Class<?>

the type to check

Returns:Predicate<RuntimeHints>

the RuntimeHints predicate

See Also
java.lang.reflect.Proxy
onTypeback to summary
public Predicate<RuntimeHints> onType(TypeReference typeReference)

Return a predicate that checks whether a serialization hint is registered for the given type reference.

Parameters
typeReference:TypeReference

the type to check

Returns:Predicate<RuntimeHints>

the RuntimeHints predicate

See Also
java.lang.reflect.Proxy