Class SlotValue<T>

All Implemented Interfaces:
ReadableValue<T>, 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()
    • valueNoNotify

      public final boolean valueNoNotify(T value)
      Specified by:
      valueNoNotify 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).