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:
cast
in interfacePojoCaster<T>
- Parameters:
object
- the object to cast- Returns:
- the cast object
-
castOrNull
public T castOrNull(Object object)
- Specified by:
castOrNull
in interfacePojoCaster<T>
- Parameters:
object
- the object to cast- Returns:
- the cast object, or
null
if the object could not be cast
-
-