T - The R2DBC SPI type being wrappedpublic interface Wrapped<T>
| Modifier and Type | Method and Description |
|---|---|
T |
unwrap()
Returns the original instance wrapped by this object.
|
default <E> E |
unwrap(Class<E> targetClass)
|
T unwrap()
@Nullable default <E> E unwrap(Class<E> targetClass)
unwrap() the object and returns the first instance that
matches to the given Class or null if none matches.
If this object is an instance of the given Class, this object is returned.
E - returning typetargetClass - target type to unwrapnullIllegalArgumentException - if targetClass is nullCopyright © 2021. All rights reserved.