Class FilteredAStream

java.lang.Object
com.stuypulse.stuylib.streams.angles.FilteredAStream
All Implemented Interfaces:
AStream, Supplier<Angle>

public class FilteredAStream extends Object implements AStream
Takes an AStream and a AFilter and makes a FilteredAStream

This could be used to automatically filter controller inputs

  • Constructor Details

    • FilteredAStream

      public FilteredAStream(AStream stream, AFilter... filter)
      Makes filtered stream from stream and stream filter
      Parameters:
      stream - input stream
      filter - stream filter
  • Method Details

    • get

      public Angle get()
      Get next value from filtered stream
      Specified by:
      get in interface AStream
      Specified by:
      get in interface Supplier<Angle>
      Returns:
      next value