Class Tunables.TunableString

java.lang.Object
org.team1126.lib.tunable.Tunables.TunableString
Enclosing class:
Tunables

public static final class Tunables.TunableString extends Object
A tunable string value. Can be modified via NetworkTables.
  • Method Details

    • get

      public String get()
      Returns the value of the tunable.
    • set

      public void set(String value)
      Sets the value of the tunable.
      Parameters:
      value - The new value.
    • addListener

      public void addListener(Consumer<String> onChange)
      Adds a listener that will be invoked when the tunable's value is modified. Will no-op if the listener is null.
      Parameters:
      onChange - A consumer that is invoked when the value of the tunable is modified.
    • poll

      public void poll()