public static List < AspectInformation > filterIds ( final List < AspectInformation > list , final Predicate < String > predicate ) { if ( list == null ) { return null ; } return list . stream ( ) . filter ( ( i ) - > predicate . test ( i . getFactoryId ( ) ) ) . collect ( Collectors . toList ( ) ) ; }
Filter the provided aspect lists by a predicate on the ID