Class FilteredVStream

java.lang.Object
com.stuypulse.stuylib.streams.vectors.FilteredVStream
All Implemented Interfaces:
VStream, Supplier<Vector2D>

public class FilteredVStream extends Object implements VStream
A FilteredVStream is similar to a FilteredIStream.

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

  • Constructor Details

    • FilteredVStream

      public FilteredVStream(VStream stream, VFilter... filter)
      Makes filtered stream from stream and stream filter
      Parameters:
      stream - input stream
      filter - stream filter
  • Method Details