if (cascadeOnReset()) { wrapperFor.reset();
if (cascadeOnReset()) { wrapperFor.reset();
/** * Declares as invalid all unsynchronized {@code Coupled} instances which are using, directly or indirectly, * this instance. This method is invoked before {@link StorageConnector#getStorageAs(Class)} returns a view, * in order to remember which views would need to be resynchronized if they are requested. */ final void invalidateUsages() { if (wrappedBy != null) { for (final Coupled c : wrappedBy) { if (c.cascadeOnReset()) { c.isValid = false; c.invalidateUsages(); } } } }
/** * Declares as invalid all unsynchronized {@code Coupled} instances which are using, directly or indirectly, * this instance. This method is invoked before {@link StorageConnector#getStorageAs(Class)} returns a view, * in order to remember which views would need to be resynchronized if they are requested. */ final void invalidateUsages() { if (wrappedBy != null) { for (final Coupled c : wrappedBy) { if (c.cascadeOnReset()) { c.isValid = false; c.invalidateUsages(); } } } }
/** * Declares as invalid all unsynchronized {@code Coupled} instances which are used, directly or indirectly, * by this instance. This method is invoked before {@link StorageConnector#getStorageAs(Class)} returns a * view, in order to remember which views would need to be resynchronized if they are requested. */ final void invalidateSources() { boolean sync = cascadeOnReset(); for (Coupled c = wrapperFor; sync; c = c.wrapperFor) { c.isValid = false; sync = c.cascadeOnReset(); } }
/** * Declares as invalid all unsynchronized {@code Coupled} instances which are used, directly or indirectly, * by this instance. This method is invoked before {@link StorageConnector#getStorageAs(Class)} returns a * view, in order to remember which views would need to be resynchronized if they are requested. */ final void invalidateSources() { boolean sync = cascadeOnReset(); for (Coupled c = wrapperFor; sync; c = c.wrapperFor) { c.isValid = false; sync = c.cascadeOnReset(); } }