Class EntryBase

java.lang.Object
org.wpilib.networktables.EntryBase
All Implemented Interfaces:
AutoCloseable, Publisher, PubSub, Subscriber

public abstract class EntryBase extends Object implements Subscriber, Publisher
NetworkTables entry base implementation.
  • Field Details

    • m_handle

      protected int m_handle
      NetworkTables handle.
  • Constructor Details

    • EntryBase

      public EntryBase(int handle)
      Constructor.
      Parameters:
      handle - handle
  • Method Details

    • isValid

      public boolean isValid()
      Description copied from interface: PubSub
      Determines if the native handle is valid.
      Specified by:
      isValid in interface PubSub
      Returns:
      True if the native handle is valid, false otherwise.
    • getHandle

      public int getHandle()
      Description copied from interface: PubSub
      Gets the native handle.
      Specified by:
      getHandle in interface PubSub
      Returns:
      Handle
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface PubSub
    • exists

      public boolean exists()
      Description copied from interface: Subscriber
      Determines if the entry currently exists.
      Specified by:
      exists in interface Subscriber
      Returns:
      True if the entry exists, false otherwise.
    • getLastChange

      public long getLastChange()
      Description copied from interface: Subscriber
      Gets the last time the entry's value was changed.
      Specified by:
      getLastChange in interface Subscriber
      Returns:
      Entry last change time