Class TorqueTraversableSelection<T>

java.lang.Object
org.texastorque.torquelib.control.TorqueTraversableSelection<T>

public final class TorqueTraversableSelection<T> extends Object
Wrapper for an array that has a selector that can be incremented or decremented on controller inputs. [1, 2, 3, 4, 5] <- ^ -> ß
  • Constructor Details

    • TorqueTraversableSelection

      public TorqueTraversableSelection(T... values)
    • TorqueTraversableSelection

      public TorqueTraversableSelection(int index, T... values)
  • Method Details

    • calculate

      public final T calculate(boolean decrement, boolean increment)
    • hasUpdated

      public final boolean hasUpdated()
      Check if the class has been updated since the last call of this method.
      Returns:
      Has the class been updated since the last call of this method.
    • get

      public final T get()
    • get

      public final T get(int index)
    • set

      public final void set(int index)