Class BButtonRC.Pressed

java.lang.Object
com.stuypulse.stuylib.streams.booleans.filters.BButtonRC.Pressed
All Implemented Interfaces:
BButtonRC, BFilter
Enclosing interface:
BButtonRC

public static class BButtonRC.Pressed extends Object implements BButtonRC
  • Constructor Details

    • Pressed

      public Pressed(Number decay)
      Parameters:
      decay - time in seconds to remain true after the BStream has been pressed
  • Method Details

    • get

      public boolean get(boolean next)
      Description copied from interface: BFilter
      Get next value in Filter based on the next value given
      Specified by:
      get in interface BFilter
      Parameters:
      next - next input value in the stream
      Returns:
      the output value of the filter