private static Collection < String > getFromAppliesTo ( final Asset asset , final AppliesToFilterGetter getter ) { Collection < AppliesToFilterInfo > atfis = asset . getWlpInformation ( ) . getAppliesToFilterInfo ( ) ; Collection < String > ret = new ArrayList < String > ( ) ; if ( atfis != null ) { for ( AppliesToFilterInfo at : atfis ) { if ( at != null ) { String val = getter . getValue ( at ) ; if ( val != null ) { ret . add ( val ) ; } } } } return ret ; }
Utility method to cycle through the applies to filters info and collate the values found