Class SimpleTypeHolder
java.lang.Object
org.springframework.data.mapping.model.SimpleTypeHolder
Simple container to hold a set of types to be considered simple types.
- Author:
- Oliver Gierke, Christoph Strobl, Mark Paluch
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a newSimpleTypeHolder
containing the default types.SimpleTypeHolder
(Set<? extends Class<?>> customSimpleTypes, boolean registerDefaults) Creates a newSimpleTypeHolder
to carry the given custom simple types.SimpleTypeHolder
(Set<? extends Class<?>> customSimpleTypes, SimpleTypeHolder source) Copy constructor to create a newSimpleTypeHolder
that carries the given additional custom simple types. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSimpleType
(Class<?> type) Returns whether the given type is considered a simple one.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
SimpleTypeHolder
protected SimpleTypeHolder()Creates a newSimpleTypeHolder
containing the default types.- See Also:
-
SimpleTypeHolder
Creates a newSimpleTypeHolder
to carry the given custom simple types. Registration of default simple types can be deactivated by passing false forregisterDefaults
.- Parameters:
customSimpleTypes
-registerDefaults
-
-
SimpleTypeHolder
Copy constructor to create a newSimpleTypeHolder
that carries the given additional custom simple types.- Parameters:
customSimpleTypes
- must not be nullsource
- must not be null
-
-
Method Details
-
isSimpleType
Returns whether the given type is considered a simple one.- Parameters:
type
- must not be null.- Returns:
-