Class BDebounce.Rising

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

public static class BDebounce.Rising extends Object implements BDebounce
A Rising Debounce Filter.

The input BStream must remain true for debounceTime before this returns true

  • Constructor Details

    • Rising

      public Rising(Number debounceTime)
      Parameters:
      debounceTime - amount of time the BStream must remain true before returning true
  • 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