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
    NetworkTables handle.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntryBase(int handle)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    Determines if the entry currently exists.
    int
    Gets the native handle.
    long
    Gets the last time the entry's value was changed.
    boolean
    Determines if the native handle is valid.

    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.PubSub

    getTopic
  • 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