Class ToggleableIntegerSubscriber
java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableIntegerSubscriber
- All Implemented Interfaces:
AutoCloseable, LongSupplier, org.wpilib.networktables.IntegerSubscriber, org.wpilib.networktables.PubSub, org.wpilib.networktables.Subscriber
@NullMarked
public class ToggleableIntegerSubscriber
extends Object
implements org.wpilib.networktables.IntegerSubscriber
-
Constructor Summary
ConstructorsConstructorDescriptionToggleableIntegerSubscriber(org.wpilib.networktables.IntegerSubscriber subscriber, long defaultValue, BooleanSupplier useNt) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanexists()longget()longget(long defaultValue) org.wpilib.networktables.TimestampedIntegerorg.wpilib.networktables.TimestampedIntegergetAtomic(long defaultValue) intlongorg.wpilib.networktables.IntegerTopicgetTopic()booleanisValid()org.wpilib.networktables.TimestampedInteger[]long[]Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wpilib.networktables.IntegerSubscriber
getAsLong
-
Constructor Details
-
ToggleableIntegerSubscriber
public ToggleableIntegerSubscriber(org.wpilib.networktables.IntegerSubscriber subscriber, long 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 long get()- Specified by:
getin interfaceorg.wpilib.networktables.IntegerSubscriber
-
get
public long get(long defaultValue) - Specified by:
getin interfaceorg.wpilib.networktables.IntegerSubscriber
-
getAtomic
public org.wpilib.networktables.TimestampedInteger getAtomic()- Specified by:
getAtomicin interfaceorg.wpilib.networktables.IntegerSubscriber
-
getAtomic
public org.wpilib.networktables.TimestampedInteger getAtomic(long defaultValue) - Specified by:
getAtomicin interfaceorg.wpilib.networktables.IntegerSubscriber
-
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.IntegerTopic getTopic()- Specified by:
getTopicin interfaceorg.wpilib.networktables.IntegerSubscriber- Specified by:
getTopicin interfaceorg.wpilib.networktables.PubSub
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceorg.wpilib.networktables.PubSub
-
readQueue
public org.wpilib.networktables.TimestampedInteger[] readQueue()- Specified by:
readQueuein interfaceorg.wpilib.networktables.IntegerSubscriber
-
readQueueValues
public long[] readQueueValues()- Specified by:
readQueueValuesin interfaceorg.wpilib.networktables.IntegerSubscriber
-