public final class CopyObjectExtensions extends Object
CopyObjectExtensions provide methods for copy an original object to a given
destination object.| Constructor and Description |
|---|
CopyObjectExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <ORIGINAL,DESTINATION> |
copy(ORIGINAL original,
DESTINATION destination)
Copy the given original object to the given destination object.
|
static <ORIGINAL,DESTINATION> |
copyQuietly(ORIGINAL original,
DESTINATION destination)
Copy quietly the given original object to the given destination object.
|
static <DESTINATION,ORIGINAL> |
isCopyable(ORIGINAL original,
DESTINATION destination)
Checks if is copyable and copies if its possible otherwise it returns false.
|
public static final <ORIGINAL,DESTINATION> DESTINATION copy(ORIGINAL original,
DESTINATION destination)
throws IllegalAccessException,
InvocationTargetException,
IllegalArgumentException
DESTINATION - the generic type of the destination object.ORIGINAL - the generic type of the original object.original - the original object.destination - the destination object.IllegalAccessException - if the caller does not have access to the property accessor methodInvocationTargetException - if the property accessor method throws an exceptionIllegalArgumentException - if the destination or original argument is null or if
the destination property type is different from the source type and
the relevant converter has not been registered.public static final <ORIGINAL,DESTINATION> DESTINATION copyQuietly(ORIGINAL original,
DESTINATION destination)
DESTINATION - the generic type of the destination object.ORIGINAL - the generic type of the original object.original - the original object.destination - the destination object.public static final <DESTINATION,ORIGINAL> boolean isCopyable(ORIGINAL original,
DESTINATION destination)
DESTINATION - the generic type of the destination object.ORIGINAL - the generic type of the original object.original - the original object.destination - the destination object.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.