Interface IntegerValue

All Superinterfaces:
IntSupplier, Subscribable, Value<IntegerValueChangedCallback>
All Known Subinterfaces:
SettableIntegerValue

public interface IntegerValue extends Value<IntegerValueChangedCallback>, IntSupplier
  • Method Details

    • get

      int get()
      Gets the current value.
      Since:
      API version 2
    • getAsInt

      default int getAsInt()
      Specified by:
      getAsInt in interface IntSupplier
    • addValueObserver

      void addValueObserver(IntegerValueChangedCallback callback, int valueWhenUnassigned)
      Adds an observer that is notified when this value changes. This is intended to aid in backwards compatibility for drivers written to the version 1 API.
      Parameters:
      callback - The callback to notify with the new value
      valueWhenUnassigned - The value that the callback will be notified with if this value is not currently assigned to anything.