Class IntParam

java.lang.Object
frc.spectrumLib.params.Param<Integer>
frc.spectrumLib.params.IntParam
All Implemented Interfaces:
IntSupplier

public final class IntParam extends Param<Integer> implements IntSupplier
A whole number, with inclusive bounds. NT carries it as a double, so 2.0 reads as 2.
  • Method Details

    • getAsInt

      public int getAsInt()
      Specified by:
      getAsInt in interface IntSupplier
    • type

      public Param.Type type()
      Specified by:
      type in class Param<Integer>
    • min

      public double min()
      Description copied from class: Param
      Lower bound, or NaN when the type has none.
      Overrides:
      min in class Param<Integer>
    • max

      public double max()
      Description copied from class: Param
      Upper bound, or NaN when the type has none.
      Overrides:
      max in class Param<Integer>