Class JavaClassPojoCaster<T>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.spi.JavaClassPojoCaster<T>
-
- All Implemented Interfaces:
PojoCaster<T>
public final class JavaClassPojoCaster<T> extends Object implements PojoCaster<T>
-
-
Constructor Summary
Constructors Constructor Description JavaClassPojoCaster(Class<T> clazz)
-
-
-
Method Detail
-
cast
public T cast(Object object)
- Specified by:
castin interfacePojoCaster<T>- Parameters:
object- the object to cast- Returns:
- the cast object
-
castOrNull
public T castOrNull(Object object)
- Specified by:
castOrNullin interfacePojoCaster<T>- Parameters:
object- the object to cast- Returns:
- the cast object, or
nullif the object could not be cast
-
-