Interface BooleanInstance

All Superinterfaces:
Instance

public interface BooleanInstance extends Instance
A read-only Instance bound to a Boolean primitive value. Primitive instances are anonymous (no object id) and deliberately do not expose subscribe, set, remove or any other id/iteration/write methods - only value() - per RTTS10c.

Spec: RTTS10c

  • Method Details

    • value

      @NotNull @NotNull Boolean value()
      Returns the wrapped boolean.

      Spec: RTINS4 / RTTS10c

      Returns:
      the wrapped boolean value
    • compactJson

      @NotNull @NotNull com.google.gson.JsonPrimitive compactJson()
      Returns the compacted JSON snapshot of the wrapped value, narrowed to a JsonPrimitive: a BooleanInstance always compacts to a single JSON primitive.

      Spec: RTTS7a

      Specified by:
      compactJson in interface Instance
      Returns:
      the compacted JSON primitive