Filtering Java Collections via... Note

Filtering Java Collections via Annotation-Driven Introspection

Since Java 8, the programming workload of iterating over collections and selecting a subcollection (filtering) based on defined constraints (predicates) has been considerably simplified using the new Stream API. Despite this new feature, some scenarios can still overwhelm developers by requiring them to implement a significant amount of very specific code to meet the filtering conditions. A common example in enterprise systems is the need to filter:". . . a collection where each object is an element of a large graph and the attributes to be considered in the filters belong to distinct objects."