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 Summary
ConstructorsConstructorDescriptionToggleableFloatSubscriber(org.wpilib.networktables.FloatSubscriber subscriber, float defaultValue, BooleanSupplier useNt) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanexists()floatget()floatget(float defaultValue) org.wpilib.networktables.TimestampedFloatorg.wpilib.networktables.TimestampedFloatgetAtomic(float defaultValue) intlongorg.wpilib.networktables.FloatTopicgetTopic()booleanisValid()org.wpilib.networktables.TimestampedFloat[]float[]Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wpilib.networktables.FloatSubscriber
getAsFloat
-
Constructor Details
-
ToggleableFloatSubscriber
public ToggleableFloatSubscriber(org.wpilib.networktables.FloatSubscriber subscriber, float 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 float get()- Specified by:
getin interfaceorg.wpilib.networktables.FloatSubscriber
-
get
public float get(float defaultValue) - Specified by:
getin interfaceorg.wpilib.networktables.FloatSubscriber
-
getAtomic
public org.wpilib.networktables.TimestampedFloat getAtomic()- Specified by:
getAtomicin interfaceorg.wpilib.networktables.FloatSubscriber
-
getAtomic
public org.wpilib.networktables.TimestampedFloat getAtomic(float defaultValue) - Specified by:
getAtomicin interfaceorg.wpilib.networktables.FloatSubscriber
-
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.FloatTopic getTopic()- Specified by:
getTopicin interfaceorg.wpilib.networktables.FloatSubscriber- Specified by:
getTopicin interfaceorg.wpilib.networktables.PubSub
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.wpilib.networktables.PubSub
-
readQueue
public org.wpilib.networktables.TimestampedFloat[] readQueue()- Specified by:
readQueuein interfaceorg.wpilib.networktables.FloatSubscriber
-
readQueueValues
public float[] readQueueValues()- Specified by:
readQueueValuesin interfaceorg.wpilib.networktables.FloatSubscriber
-