Class ToggleableFloatSubscriber

java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableFloatSubscriber
All Implemented Interfaces:
AutoCloseable, org.wpilib.networktables.FloatSubscriber, org.wpilib.networktables.PubSub, org.wpilib.networktables.Subscriber, org.wpilib.util.function.FloatSupplier

@NullMarked public class ToggleableFloatSubscriber extends Object implements org.wpilib.networktables.FloatSubscriber
  • Constructor Details

    • ToggleableFloatSubscriber

      public ToggleableFloatSubscriber(org.wpilib.networktables.FloatSubscriber subscriber, float defaultValue, BooleanSupplier useNt)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wpilib.networktables.PubSub
    • exists

      public boolean exists()
      Specified by:
      exists in interface org.wpilib.networktables.Subscriber
    • get

      public float get()
      Specified by:
      get in interface org.wpilib.networktables.FloatSubscriber
    • get

      public float get(float defaultValue)
      Specified by:
      get in interface org.wpilib.networktables.FloatSubscriber
    • getAtomic

      public org.wpilib.networktables.TimestampedFloat getAtomic()
      Specified by:
      getAtomic in interface org.wpilib.networktables.FloatSubscriber
    • getAtomic

      public org.wpilib.networktables.TimestampedFloat getAtomic(float defaultValue)
      Specified by:
      getAtomic in interface org.wpilib.networktables.FloatSubscriber
    • getHandle

      public int getHandle()
      Specified by:
      getHandle in interface org.wpilib.networktables.PubSub
    • getLastChange

      public long getLastChange()
      Specified by:
      getLastChange in interface org.wpilib.networktables.Subscriber
    • getTopic

      public org.wpilib.networktables.FloatTopic getTopic()
      Specified by:
      getTopic in interface org.wpilib.networktables.FloatSubscriber
      Specified by:
      getTopic in interface org.wpilib.networktables.PubSub
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface org.wpilib.networktables.PubSub
    • readQueue

      public org.wpilib.networktables.TimestampedFloat[] readQueue()
      Specified by:
      readQueue in interface org.wpilib.networktables.FloatSubscriber
    • readQueueValues

      public float[] readQueueValues()
      Specified by:
      readQueueValues in interface org.wpilib.networktables.FloatSubscriber