Interface Value.Locked

Enclosing interface:
Value<T>

public static interface Value.Locked

Controls whether a Value instance is locked.

Locking a value prevents it from being changed, it does not prevent it from being set: attempting to change a locked value throws IllegalStateException, whereas setting a locked value to its current value is a no-op (and still notifies under Value.Notify.SET).

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    is()
     
    void
    set(boolean locked)
     
  • Method Details

    • is

      boolean is()
      Returns:
      true if the value is locked
    • set

      void set(boolean locked)
      Parameters:
      locked - the locked status