@FunctionalInterface public static interface ShadowingStrategy.Wrapper
Shadows.| Modifier and Type | Method and Description |
|---|---|
@Nullable Object |
wrap(@Nullable Object unwrapped,
@NonNull Class<?> expectedType,
@NonNull ShadowFactory shadowFactory)
Wraps the given
object to a shadow. |
@Nullable Object wrap(@Nullable Object unwrapped, @NonNull Class<?> expectedType, @NonNull ShadowFactory shadowFactory) throws Exception
object to a shadow.unwrapped - the object being returned (not a shadow)expectedType - the expected type of the object (possibly a shadow)shadowFactory - the shadow factoryException - anything