Class ToggleableDoubleSubscriber
java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableDoubleSubscriber
- All Implemented Interfaces:
AutoCloseable, DoubleSupplier, org.wpilib.networktables.DoubleSubscriber, org.wpilib.networktables.PubSub, org.wpilib.networktables.Subscriber
@NullMarked
public class ToggleableDoubleSubscriber
extends Object
implements org.wpilib.networktables.DoubleSubscriber
-
Constructor Summary
ConstructorsConstructorDescriptionToggleableDoubleSubscriber(org.wpilib.networktables.DoubleSubscriber subscriber, double defaultValue, BooleanSupplier useNt) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanexists()doubleget()doubleget(double defaultValue) org.wpilib.networktables.TimestampedDoubleorg.wpilib.networktables.TimestampedDoublegetAtomic(double defaultValue) intlongorg.wpilib.networktables.DoubleTopicgetTopic()booleanisValid()org.wpilib.networktables.TimestampedDouble[]double[]Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wpilib.networktables.DoubleSubscriber
getAsDouble
-
Constructor Details
-
ToggleableDoubleSubscriber
public ToggleableDoubleSubscriber(org.wpilib.networktables.DoubleSubscriber subscriber, double defaultValue, BooleanSupplier useNt)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wpilib.networktables.PubSub
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.wpilib.networktables.Subscriber
-
get
public double get()- Specified by:
getin interfaceorg.wpilib.networktables.DoubleSubscriber
-
get
public double get(double defaultValue) - Specified by:
getin interfaceorg.wpilib.networktables.DoubleSubscriber
-
getAtomic
public org.wpilib.networktables.TimestampedDouble getAtomic()- Specified by:
getAtomicin interfaceorg.wpilib.networktables.DoubleSubscriber
-
getAtomic
public org.wpilib.networktables.TimestampedDouble getAtomic(double defaultValue) - Specified by:
getAtomicin interfaceorg.wpilib.networktables.DoubleSubscriber
-
getHandle
public int getHandle()- Specified by:
getHandlein interfaceorg.wpilib.networktables.PubSub
-
getLastChange
public long getLastChange()- Specified by:
getLastChangein interfaceorg.wpilib.networktables.Subscriber
-
getTopic
public org.wpilib.networktables.DoubleTopic getTopic()- Specified by:
getTopicin interfaceorg.wpilib.networktables.DoubleSubscriber- Specified by:
getTopicin interfaceorg.wpilib.networktables.PubSub
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.wpilib.networktables.PubSub
-
readQueue
public org.wpilib.networktables.TimestampedDouble[] readQueue()- Specified by:
readQueuein interfaceorg.wpilib.networktables.DoubleSubscriber
-
readQueueValues
public double[] readQueueValues()- Specified by:
readQueueValuesin interfaceorg.wpilib.networktables.DoubleSubscriber
-