Package edu.wpi.first.networktables
Class EntryBase
java.lang.Object
edu.wpi.first.networktables.EntryBase
- All Implemented Interfaces:
Publisher
,PubSub
,Subscriber
,AutoCloseable
public abstract class EntryBase extends Object implements Subscriber, Publisher
NetworkTables entry base implementation.
-
Field Summary
Fields Modifier and Type Field Description protected int
m_handle
NetworkTables handle. -
Constructor Summary
Constructors Constructor Description EntryBase(int handle)
Constructor. -
Method Summary
Modifier and Type Method Description void
close()
boolean
exists()
Determines if the entry currently exists.int
getHandle()
Gets the native handle.long
getLastChange()
Gets the last time the entry's value was changed.boolean
isValid()
Determines if the native handle is valid.
-
Field Details
-
m_handle
NetworkTables handle.
-
-
Constructor Details
-
EntryBase
Constructor.- Parameters:
handle
- handle
-
-
Method Details
-
isValid
Description copied from interface:PubSub
Determines if the native handle is valid. -
getHandle
Description copied from interface:PubSub
Gets the native handle. -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePubSub
-
exists
Description copied from interface:Subscriber
Determines if the entry currently exists.- Specified by:
exists
in interfaceSubscriber
- Returns:
- True if the entry exists, false otherwise.
-
getLastChange
Description copied from interface:Subscriber
Gets the last time the entry's value was changed.- Specified by:
getLastChange
in interfaceSubscriber
- Returns:
- Entry last change time
-