Skip to content

Instantly share code, notes, and snippets.

@runeflobakk
Created October 30, 2011 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runeflobakk/1326485 to your computer and use it in GitHub Desktop.
Save runeflobakk/1326485 to your computer and use it in GitHub Desktop.
Snippet: Dersom det ikke finnes ConfigAttributes som støttes av SecurityLevelVoter, returner ACCESS_ABSTAIN. Java 8 Project Lambda-syntaks.
Collection<ConfigAttribute> supportedAttributes =
select(attributes, attr -> this.supports(attr));
if (supportedAttributes.isEmpty()) {
return ACCESS_ABSTAIN;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment