public interface IWrapper
|Modifier and Type||Method and Description|
Tests if this object instance is of the base- or subclass of the
Returns the cast class
default <T> T unwrap(Class<T> iface)
ifaceinstance if possible, otherwise null.
T- The class requested.
iface- The class to cast to.
iface, otherwise null.
default boolean isWrapperFor(Class<?> iface)
ifaceclass. This method is typically used to identify an instance known as an instance of an interface, and the caller wishes to verify if it's really an implementation of a class that in turn implements or specifies the interface
iface- The class to check.
ifaceclass is assignable from this instance class.
iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.