Class FilteredBStream

java.lang.Object
com.stuypulse.stuylib.streams.booleans.FilteredBStream
All Implemented Interfaces:
BStream, BooleanSupplier

public class FilteredBStream extends Object implements BStream
A FilteredBStream is similar to a FilteredIStream.

It works like a BStream, but every time you call .get(), it runs the value through the filters you provided it.

  • Constructor Details

    • FilteredBStream

      public FilteredBStream(BStream stream, BFilter... filter)
      Makes filtered stream from stream and stream filter
      Parameters:
      stream - input stream
      filter - stream filter
  • Method Details

    • get

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