Class ToggleableStringSubscriber

java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableStringSubscriber
All Implemented Interfaces:
edu.wpi.first.networktables.PubSub, edu.wpi.first.networktables.StringSubscriber, edu.wpi.first.networktables.Subscriber, AutoCloseable, Supplier<String>

public class ToggleableStringSubscriber extends Object implements edu.wpi.first.networktables.StringSubscriber
  • Constructor Details

    • ToggleableStringSubscriber

      public ToggleableStringSubscriber(edu.wpi.first.networktables.StringSubscriber subscriber, String defaultValue, BooleanSupplier useNt)
  • Method Details

    • getTopic

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

      public String get()
      Specified by:
      get in interface edu.wpi.first.networktables.StringSubscriber
      Specified by:
      get in interface Supplier<String>
    • get

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

      public edu.wpi.first.networktables.TimestampedString getAtomic()
      Specified by:
      getAtomic in interface edu.wpi.first.networktables.StringSubscriber
    • getAtomic

      public edu.wpi.first.networktables.TimestampedString getAtomic(String defaultValue)
      Specified by:
      getAtomic in interface edu.wpi.first.networktables.StringSubscriber
    • readQueue

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

      public String[] readQueueValues()
      Specified by:
      readQueueValues in interface edu.wpi.first.networktables.StringSubscriber
    • 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