public final class CopyObjectQuietlyExtensions extends Object
CopyObjectQuietlyExtensions provide methods for copy an original object to a
given destination object in a quietly manner as the name let presume.| Constructor and Description |
|---|
CopyObjectQuietlyExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <ORIGINAL,DESTINATION> |
copyPropertiesQuietly(ORIGINAL original,
DESTINATION destination)
Copy quietly the given original object to the given destination object.
|
static <T> T |
copyPropertiesQuietly(T original)
Copy the given object and return a copy of it.
|
static <ORIGINAL,DESTINATION> |
copyPropertyWithReflectionQuietly(ORIGINAL original,
DESTINATION destination,
String fieldName)
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 <T extends Serializable> |
copySerializedObjectQuietly(T orig)
Copy quietly the given Object and returns the copy from the object or null if the object
can't be serialized.
|
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 copyPropertyWithReflectionQuietly(ORIGINAL original,
DESTINATION destination,
String fieldName)
ORIGINAL - the generic type of the original object.DESTINATION - the generic type of the destination object.original - the original object.destination - the destination object.fieldName - the field namepublic 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.public static final <ORIGINAL,DESTINATION> DESTINATION copyPropertiesQuietly(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 <T> T copyPropertiesQuietly(T original)
BeanUtils.copyProperties(Object, Object) and create a new object for the returned
object.T - the generic type of the given object.original - the original object.public static <T extends Serializable> T copySerializedObjectQuietly(T orig)
T - the generic type of the given objectorig - The object to copy.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.