public TemplateFilter osTypes ( OsFilter ... osFilter ) { allItemsNotNull ( osFilter , "OS templates" ) ; predicate = predicate . and ( Stream . of ( osFilter ) . filter ( notNull ( ) ) . map ( OsFilter :: getPredicate ) . reduce ( alwaysFalse ( ) , Predicate :: or ) ) ; return this ; }
Method allow to find templates with required image OS .