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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newSimpleTypeHoldercontaining the default types.SimpleTypeHolder(Set<? extends Class<?>> customSimpleTypes, boolean registerDefaults) Creates a newSimpleTypeHolderto carry the given custom simple types.SimpleTypeHolder(Set<? extends Class<?>> customSimpleTypes, SimpleTypeHolder source) Copy constructor to create a newSimpleTypeHolderthat carries the given additional custom simple types. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSimpleType(Class<?> type) Returns whether the given type is considered a simple one.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
SimpleTypeHolder
protected SimpleTypeHolder()Creates a newSimpleTypeHoldercontaining the default types.- See Also:
-
SimpleTypeHolder
Creates a newSimpleTypeHolderto 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 newSimpleTypeHolderthat 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:
-