Class ToggleableBooleanSubscriber

java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableBooleanSubscriber
All Implemented Interfaces:
edu.wpi.first.networktables.BooleanSubscriber, edu.wpi.first.networktables.PubSub, edu.wpi.first.networktables.Subscriber, AutoCloseable, BooleanSupplier

public class ToggleableBooleanSubscriber extends Object implements edu.wpi.first.networktables.BooleanSubscriber
  • Constructor Details

    • ToggleableBooleanSubscriber

      public ToggleableBooleanSubscriber(edu.wpi.first.networktables.BooleanSubscriber subscriber, boolean defaultValue, BooleanSupplier useNt)
  • Method Details

    • getTopic

      public edu.wpi.first.networktables.BooleanTopic getTopic()
      Specified by:
      getTopic in interface edu.wpi.first.networktables.BooleanSubscriber
      Specified by:
      getTopic in interface edu.wpi.first.networktables.PubSub
    • get

      public boolean get()
      Specified by:
      get in interface edu.wpi.first.networktables.BooleanSubscriber
    • get

      public boolean get(boolean defaultValue)
      Specified by:
      get in interface edu.wpi.first.networktables.BooleanSubscriber
    • getAtomic

      public edu.wpi.first.networktables.TimestampedBoolean getAtomic()
      Specified by:
      getAtomic in interface edu.wpi.first.networktables.BooleanSubscriber
    • getAtomic

      public edu.wpi.first.networktables.TimestampedBoolean getAtomic(boolean defaultValue)
      Specified by:
      getAtomic in interface edu.wpi.first.networktables.BooleanSubscriber
    • readQueue

      public edu.wpi.first.networktables.TimestampedBoolean[] readQueue()
      Specified by:
      readQueue in interface edu.wpi.first.networktables.BooleanSubscriber
    • readQueueValues

      public boolean[] readQueueValues()
      Specified by:
      readQueueValues in interface edu.wpi.first.networktables.BooleanSubscriber
    • exists

      public boolean exists()
      Specified by:
      exists in interface edu.wpi.first.networktables.Subscriber
    • getLastChange

      public long getLastChange()
      Specified by:
      getLastChange in interface edu.wpi.first.networktables.Subscriber
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface edu.wpi.first.networktables.PubSub
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface edu.wpi.first.networktables.PubSub
    • getHandle

      public int getHandle()
      Specified by:
      getHandle in interface edu.wpi.first.networktables.PubSub