Package org.refcodes.mixin
Interface Lockable
-
public interface LockableTheLockableinterface defines methods to set the status of an object to be locked or unlocked and to determine the status. Depending instances may useLockableinstances to determine whether to modify an implementing instance or keep it untouched. An implementing instance may throw theorg.refcodes.exception.LockedRuntimeExceptionor theorg.refcodes.exception.LockedException, depending whether it wants that exception to be checked or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisLocked()Determines whether the implementing instance is locked.voidlock()Locks the implementing instance.voidunlock()Unlocks the implementing instance.
-