Package herddb.utils
Interface Wrapper
-
public interface Wrapper
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default <T> Tunwrap(Class<T> clazz)Unwraps this object.static <T> Tunwrap(Object o, Class<T> clazz)
-
-
-
Method Detail
-
unwrap
default <T> T unwrap(Class<T> clazz)
Unwraps this object. If the object is intance of the given class this method direclty returns this, otherwise it can return any other object of the given class "wrapped" by the current instance- Type Parameters:
T-- Parameters:
clazz-- Returns:
-
-