Class ToggleableIntegerSubscriber

java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableIntegerSubscriber
All Implemented Interfaces:
AutoCloseable, LongSupplier, org.wpilib.networktables.IntegerSubscriber, org.wpilib.networktables.PubSub, org.wpilib.networktables.Subscriber

@NullMarked public class ToggleableIntegerSubscriber extends Object implements org.wpilib.networktables.IntegerSubscriber
  • Constructor Details

    • ToggleableIntegerSubscriber

      public ToggleableIntegerSubscriber(org.wpilib.networktables.IntegerSubscriber subscriber, long 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 long get()
      Specified by:
      get in interface org.wpilib.networktables.IntegerSubscriber
    • get

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

      public org.wpilib.networktables.TimestampedInteger getAtomic()
      Specified by:
      getAtomic in interface org.wpilib.networktables.IntegerSubscriber
    • getAtomic

      public org.wpilib.networktables.TimestampedInteger getAtomic(long defaultValue)
      Specified by:
      getAtomic in interface org.wpilib.networktables.IntegerSubscriber
    • 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.IntegerTopic getTopic()
      Specified by:
      getTopic in interface org.wpilib.networktables.IntegerSubscriber
      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.TimestampedInteger[] readQueue()
      Specified by:
      readQueue in interface org.wpilib.networktables.IntegerSubscriber
    • readQueueValues

      public long[] readQueueValues()
      Specified by:
      readQueueValues in interface org.wpilib.networktables.IntegerSubscriber