apt-mirror-api/src/main/java/com/sun/mirror/util/DeclarationFilter.java
public static DeclarationFilter getFilter(
			final Collection<Modifier> mods) {
		return new DeclarationFilter() {
			public boolean matches(Declaration d) {
				return d.getModifiers().containsAll(mods);
			}
		};
	}
public static DeclarationFilter getFilter(
			final Collection<Modifier> mods) {
		return new DeclarationFilter() {
			public boolean matches(Declaration d) {
				return d.getModifiers().containsAll(mods);
			}
		};
	}
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.

@param mods the modifiers to match (non-null)
@return a filter that matches declarations containing <tt>mods</tt>
Returns a filter that selects declarations containing all of a collection of modifiers .