public final class JavaClassPojoCaster<T> extends Object implements PojoCaster<T>
Constructor and Description |
---|
JavaClassPojoCaster(Class<T> clazz) |
public T cast(Object object)
cast
in interface PojoCaster<T>
object
- the object to castpublic T castOrNull(Object object)
castOrNull
in interface PojoCaster<T>
object
- the object to castnull
if the object could not be castCopyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.