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 () );
    }
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 () );
    }
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

@param list
the list to filter
@param predicate
the ID predicate
@return the filtered list, returns only <code>null</code> when the list
was <code>null</code>
Filter the provided aspect lists by a predicate on the ID