Class BDebounce.Falling

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

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

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

  • Constructor Details

    • Falling

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