Class SlotValue<T>

All Implemented Interfaces:
Signal, Value<T>, WritableValue<T>

public final class SlotValue<T> extends AbstractValue<T>
  • Constructor Details

    • SlotValue

      public SlotValue(T initialValue)
  • Method Details

    • read

      public final T read()
      Description copied from interface: Value
      This may be expensive!
    • writeNoNotify

      public final boolean writeNoNotify(T value)
      Specified by:
      writeNoNotify in class AbstractValue<T>
      Returns:
      whether the value was updated.
    • atomicCompareAndSet

      public final boolean atomicCompareAndSet(T expected, T value)
      Identity is used instead of equals(Object, Object).