public static DeclarationFilter getFilter ( final Collection < Modifier > mods ) { return new DeclarationFilter ( ) { public boolean matches ( Declaration d ) { return d . getModifiers ( ) . containsAll ( mods ) ; } } ; }
Returns a filter that selects declarations containing all of a collection of modifiers .