Class FilteredIStream

java.lang.Object
com.stuypulse.stuylib.streams.numbers.FilteredIStream
All Implemented Interfaces:
IStream, DoubleSupplier

public class FilteredIStream extends Object implements IStream
Takes an IStream and a IFilter and makes a FilteredIStream

This could be used to automatically filter controller inputs

  • Constructor Details

    • FilteredIStream

      public FilteredIStream(IStream stream, IFilter... filter)
      Makes filtered stream from stream and stream filter
      Parameters:
      stream - input stream
      filter - stream filter
  • Method Details

    • get

      public double get()
      Get next value from filtered stream
      Specified by:
      get in interface IStream
      Returns:
      next value