Class BButtonRC.Both

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

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

    • Both

      public Both(Number decay)
      Parameters:
      decay - time in seconds to remain true after the BStream is pressed or released
  • 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