Class FilteredCollection<A>

java.lang.Object
microsim.FilteredCollection<A>
All Implemented Interfaces:
Supplier<List<A>>

public class FilteredCollection<A> extends Object implements Supplier<List<A>>

Lazy collection filtering.

This lazily applies a Predicate as filter to a collection, acting as a Supplier for the filtered collection. This composes well with caching mechanisms offered in microsim.caching.