Class ToggleableStringSubscriber
java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableStringSubscriber
- All Implemented Interfaces:
edu.wpi.first.networktables.PubSub
,edu.wpi.first.networktables.StringSubscriber
,edu.wpi.first.networktables.Subscriber
,AutoCloseable
,Supplier<String>
public class ToggleableStringSubscriber
extends Object
implements edu.wpi.first.networktables.StringSubscriber
-
Constructor Summary
ConstructorsConstructorDescriptionToggleableStringSubscriber
(edu.wpi.first.networktables.StringSubscriber subscriber, String defaultValue, BooleanSupplier useNt) -
Method Summary
-
Constructor Details
-
ToggleableStringSubscriber
public ToggleableStringSubscriber(edu.wpi.first.networktables.StringSubscriber subscriber, String defaultValue, BooleanSupplier useNt)
-
-
Method Details
-
getTopic
public edu.wpi.first.networktables.StringTopic getTopic()- Specified by:
getTopic
in interfaceedu.wpi.first.networktables.PubSub
- Specified by:
getTopic
in interfaceedu.wpi.first.networktables.StringSubscriber
-
get
-
get
- Specified by:
get
in interfaceedu.wpi.first.networktables.StringSubscriber
-
getAtomic
public edu.wpi.first.networktables.TimestampedString getAtomic()- Specified by:
getAtomic
in interfaceedu.wpi.first.networktables.StringSubscriber
-
getAtomic
- Specified by:
getAtomic
in interfaceedu.wpi.first.networktables.StringSubscriber
-
readQueue
public edu.wpi.first.networktables.TimestampedString[] readQueue()- Specified by:
readQueue
in interfaceedu.wpi.first.networktables.StringSubscriber
-
readQueueValues
- Specified by:
readQueueValues
in interfaceedu.wpi.first.networktables.StringSubscriber
-
exists
public boolean exists()- Specified by:
exists
in interfaceedu.wpi.first.networktables.Subscriber
-
getLastChange
public long getLastChange()- Specified by:
getLastChange
in interfaceedu.wpi.first.networktables.Subscriber
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceedu.wpi.first.networktables.PubSub
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceedu.wpi.first.networktables.PubSub
-
getHandle
public int getHandle()- Specified by:
getHandle
in interfaceedu.wpi.first.networktables.PubSub
-