public boolean isUsedMyRule ( ValidationData item ) { List < ValidationRule > usedRules = item . getValidationRules ( ) ; if ( usedRules == null || usedRules . isEmpty ( ) ) { return false ; } return usedRules . stream ( ) . filter ( ur -> ur . getRuleName ( ) . equals ( this . ruleName ) && ur . isUse ( ) ) . findAny ( ) . orElse ( null ) != null ; }
Is used my rule boolean .