public static enum ShadowingStrategy.ForShadowArrays extends Enum<ShadowingStrategy.ForShadowArrays> implements ShadowingStrategy.Wrapper, ShadowingStrategy.Unwrapper
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
@NonNull Class<?> |
unwrap(Class<?> wrappedClass,
@NonNull ShadowFactory shadowFactory) |
@Nullable Object |
unwrap(@Nullable Object wrapped,
@NonNull Class<?> expectedType,
@NonNull ShadowFactory shadowFactory)
Unwraps the given
object to a non-shadow object. |
static ShadowingStrategy.ForShadowArrays |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShadowingStrategy.ForShadowArrays[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Nullable Object |
wrap(@Nullable Object unwrapped,
@NonNull Class<?> expectedType,
@NonNull ShadowFactory shadowFactory)
Wraps the given
object to a shadow. |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfunwrapAll, unwrapAllpublic static final ShadowingStrategy.ForShadowArrays INSTANCE
public static ShadowingStrategy.ForShadowArrays[] values()
for (ShadowingStrategy.ForShadowArrays c : ShadowingStrategy.ForShadowArrays.values()) System.out.println(c);
public static ShadowingStrategy.ForShadowArrays valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic @Nullable Object wrap(@Nullable Object unwrapped, @NonNull Class<?> expectedType, @NonNull ShadowFactory shadowFactory)
ShadowingStrategy.Wrapperobject to a shadow.wrap in interface ShadowingStrategy.Wrapperunwrapped - the object being returned (not a shadow)expectedType - the expected type of the object (possibly a shadow)shadowFactory - the shadow factorypublic @Nullable Object unwrap(@Nullable Object wrapped, @NonNull Class<?> expectedType, @NonNull ShadowFactory shadowFactory) throws Exception
ShadowingStrategy.Unwrapperobject to a non-shadow object.unwrap in interface ShadowingStrategy.Unwrapperwrapped - the object (possibly a shadow)expectedType - the expected type of the objectshadowFactory - the shadow factoryException - anythingpublic @NonNull Class<?> unwrap(Class<?> wrappedClass, @NonNull ShadowFactory shadowFactory)
unwrap in interface ShadowingStrategy.Unwrapper