Package herddb.utils

Interface Wrapper


  • public interface Wrapper
    • 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:
      • unwrap

        static <T> T unwrap​(Object o,
                            Class<T> clazz)