public static CapabilityRequirement hasAll ( Capability ... capabilities ) { return new CapabilityRequirement ( c -> { for ( Capability capability : capabilities ) { if ( ! c . hasCapability ( capability ) ) return false ; } return true ; } ) ; }
Creates a requirement that a given set of capabilities have all of the specified capabilities .