private Collection < ConfigAttribute > wrap ( final AccessPredicate predicate ) { requireNonNull ( predicate , "predicate" ) ; if ( predicate == AccessPredicates . PERMIT_ALL ) { return of ( ) ; // Empty collection => public invocation } return of ( new AccessPredicateConfigAttribute ( predicate ) ) ; }
Wraps the given predicate in a configuration attribute and an immutable collection .