Class ToggleableFloatSubscriber
java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableFloatSubscriber
- All Implemented Interfaces:
FloatSubscriber
,PubSub
,Subscriber
,FloatSupplier
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionToggleableFloatSubscriber
(FloatSubscriber subscriber, float defaultValue, BooleanSupplier useNt) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.networktables.FloatSubscriber
getAsFloat
-
Constructor Details
-
ToggleableFloatSubscriber
public ToggleableFloatSubscriber(FloatSubscriber subscriber, float defaultValue, BooleanSupplier useNt)
-
-
Method Details
-
getTopic
- Specified by:
getTopic
in interfaceFloatSubscriber
- Specified by:
getTopic
in interfacePubSub
-
get
public float get()- Specified by:
get
in interfaceFloatSubscriber
-
get
public float get(float defaultValue) - Specified by:
get
in interfaceFloatSubscriber
-
getAtomic
- Specified by:
getAtomic
in interfaceFloatSubscriber
-
getAtomic
- Specified by:
getAtomic
in interfaceFloatSubscriber
-
readQueue
- Specified by:
readQueue
in interfaceFloatSubscriber
-
readQueueValues
public float[] readQueueValues()- Specified by:
readQueueValues
in interfaceFloatSubscriber
-
exists
public boolean exists()- Specified by:
exists
in interfaceSubscriber
-
getLastChange
public long getLastChange()- Specified by:
getLastChange
in interfaceSubscriber
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePubSub
-
isValid
public boolean isValid() -
getHandle
public int getHandle()
-