Class ToggleableDoubleArraySubscriber

java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableDoubleArraySubscriber
All Implemented Interfaces:
AutoCloseable, Supplier<double[]>, org.wpilib.networktables.DoubleArraySubscriber, org.wpilib.networktables.PubSub, org.wpilib.networktables.Subscriber

@NullMarked public class ToggleableDoubleArraySubscriber extends Object implements org.wpilib.networktables.DoubleArraySubscriber
  • Constructor Details

    • ToggleableDoubleArraySubscriber

      public ToggleableDoubleArraySubscriber(org.wpilib.networktables.DoubleArraySubscriber subscriber, double[] 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 double[] get()
      Specified by:
      get in interface org.wpilib.networktables.DoubleArraySubscriber
      Specified by:
      get in interface Supplier<double[]>
    • get

      public double[] get(double[] defaultValue)
      Specified by:
      get in interface org.wpilib.networktables.DoubleArraySubscriber
    • getAtomic

      public org.wpilib.networktables.TimestampedDoubleArray getAtomic()
      Specified by:
      getAtomic in interface org.wpilib.networktables.DoubleArraySubscriber
    • getAtomic

      public org.wpilib.networktables.TimestampedDoubleArray getAtomic(double[] defaultValue)
      Specified by:
      getAtomic in interface org.wpilib.networktables.DoubleArraySubscriber
    • 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.DoubleArrayTopic getTopic()
      Specified by:
      getTopic in interface org.wpilib.networktables.DoubleArraySubscriber
      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.TimestampedDoubleArray[] readQueue()
      Specified by:
      readQueue in interface org.wpilib.networktables.DoubleArraySubscriber
    • readQueueValues

      public double[][] readQueueValues()
      Specified by:
      readQueueValues in interface org.wpilib.networktables.DoubleArraySubscriber