public interface ConversionHandler
| Modifier and Type | Method and Description |
|---|---|
<T> T |
clone(T object)
Clones the given object, copying all properties
|
<T> T |
convert(java.lang.Class<T> toType,
java.lang.Object object)
Converts an object into the given type
|
<T> T |
convertExcluding(java.lang.Class<T> toType,
java.lang.Object object,
java.lang.Object... properties)
Converts an object into the given type, excluding the given properties
|
<T> java.util.function.Function<java.lang.Object,T> |
convertingFunction(java.lang.Class<T> toType,
java.lang.Object... exclude)
Returns a function that converts any input object to a given type, excluding the given properties
|
<T> com.mysema.commons.lang.CloseableIterator<T> |
convertIterator(java.lang.Class<T> toType,
com.mysema.commons.lang.CloseableIterator<?> iterator)
Converts a closeable iterator, item by item, into the given type
|
<T> java.util.Iterator<T> |
convertIterator(java.lang.Class<T> toType,
java.util.Iterator<?> iterator)
Converts an iterator, item by item, into the given type
|
<T> java.util.List<T> |
convertList(java.lang.Class<T> toType,
java.lang.Iterable<?> collection)
Converts a collection of objects into a list the given type
|
<T> java.util.List<T> |
convertList(java.lang.Class<T> toType,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
Converts a collection of objects into a list the given type, setting the given additional properties to each
element
|
<T> java.util.List<T> |
convertList(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection)
Converts a collection of objects into a list using the given type mapping
|
<T> java.util.List<T> |
convertList(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
Converts a collection of objects into a list using the given type mapping, setting the given additional
properties to each element
|
<K,V> java.util.Map<K,V> |
convertMap(java.lang.Class<K> keyType,
java.lang.Class<V> valueType,
java.util.Map<?,?> map)
Converts the given map's keys and values to the given types
|
<T> Page<T> |
convertPage(java.lang.Class<T> toType,
java.lang.Iterable<?> collection)
Converts a page of objects into a list the given type
|
<T> Page<T> |
convertPage(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection)
Converts a collection of objects into a page using the given type mapping
|
<T> java.util.Set<T> |
convertSet(java.lang.Class<T> toType,
java.lang.Iterable<?> collection)
Converts a collection of objects into a set the given type
|
<T> java.util.Set<T> |
convertSet(java.lang.Class<T> toType,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
Converts a collection of objects into a set of the given type, setting the given additional properties to each
element
|
<T> java.util.Set<T> |
convertSet(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection)
Converts a collection of objects into a set using the given type mapping
|
<T> java.util.Set<T> |
convertSet(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
Converts a collection of objects into a set using the given type mapping, setting the given additional properties
to each element
|
void |
fill(java.lang.Object source,
java.lang.Object destination)
Fills the destination object with the source properties
|
void |
fillExcluding(java.lang.Object source,
java.lang.Object destination,
java.lang.Object... excludedProprties)
Fills the destination object with the source properties, excluding the given properties
|
FormatterImpl |
getFormatter()
Returns a new formatter instance
|
java.util.Date |
toDate(DateTime dateTime)
Converts a
DateTime representing a date in the logged user's time zone to a Date. |
DateTime |
toDateTime(java.util.Date date)
Converts a
Date to a DateTime using the logged user's time zone. |
<T> T clone(T object)
<T> T convert(java.lang.Class<T> toType,
java.lang.Object object)
<T> T convertExcluding(java.lang.Class<T> toType,
java.lang.Object object,
java.lang.Object... properties)
<T> java.util.function.Function<java.lang.Object,T> convertingFunction(java.lang.Class<T> toType,
java.lang.Object... exclude)
<T> com.mysema.commons.lang.CloseableIterator<T> convertIterator(java.lang.Class<T> toType,
com.mysema.commons.lang.CloseableIterator<?> iterator)
<T> java.util.Iterator<T> convertIterator(java.lang.Class<T> toType,
java.util.Iterator<?> iterator)
<T> java.util.List<T> convertList(java.lang.Class<T> toType,
java.lang.Iterable<?> collection)
<T> java.util.List<T> convertList(java.lang.Class<T> toType,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
<T> java.util.List<T> convertList(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection)
<T> java.util.List<T> convertList(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
<K,V> java.util.Map<K,V> convertMap(java.lang.Class<K> keyType,
java.lang.Class<V> valueType,
java.util.Map<?,?> map)
<T> Page<T> convertPage(java.lang.Class<T> toType, java.lang.Iterable<?> collection)
<T> Page<T> convertPage(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping, java.lang.Iterable<?> collection)
<T> java.util.Set<T> convertSet(java.lang.Class<T> toType,
java.lang.Iterable<?> collection)
<T> java.util.Set<T> convertSet(java.lang.Class<T> toType,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
<T> java.util.Set<T> convertSet(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection)
<T> java.util.Set<T> convertSet(java.util.Map<java.lang.Class<?>,java.lang.Class<?>> typeMapping,
java.lang.Iterable<?> collection,
java.util.Map<?,?> additionalProperties)
void fill(java.lang.Object source,
java.lang.Object destination)
void fillExcluding(java.lang.Object source,
java.lang.Object destination,
java.lang.Object... excludedProprties)
FormatterImpl getFormatter()
java.util.Date toDate(DateTime dateTime)
DateTime representing a date in the logged user's time zone to a Date.