Class BDebounceRC.Both

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

public static class BDebounceRC.Both extends Object implements BDebounceRC
An RC Debouncer that has a bias towards the previous value
  • Constructor Details

    • Both

      public Both(Number debounceTime)
      Parameters:
      debounceTime - amount of time on average to change value
  • 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