public boolean accept()

in appactive-java-client/client-rule/src/main/java/io/appactive/rule/traffic/condition/impl/BetweenConditionImpl.java [85:105]


    public boolean accept(String innerId) {
        if (this.rangeList == null || this.rangeList.isEmpty()) {
            throw ExceptionFactory.makeFault("between: rangeList is empty");
        }
        if (StringUtils.isBlank(innerId)) {
            throw ExceptionFactory.makeFault("between: innerId is empty");
        }

        if (StringUtils.isNotNumbers(innerId)) {
            // not number ,returen false
            return false;
        }
        Long tokenId = Long.valueOf(innerId);

        for (NumTokenRange range : rangeList) {
            if (range.isInRange(tokenId)) {
                return true;
            }
        }
        return false;
    }