Package org.apache.metamodel.util

Examples of org.apache.metamodel.util.WildcardPattern.matches()


            return comparator.compare(selectItemValue, operandValue) > 0;
        } else if (_operator == OperatorType.LESS_THAN || _operator == OperatorType.LOWER_THAN) {
            return comparator.compare(selectItemValue, operandValue) < 0;
        } else if (_operator == OperatorType.LIKE) {
            WildcardPattern matcher = new WildcardPattern((String) operandValue, '%');
            return matcher.matches((String) selectItemValue);
        } else if (_operator == OperatorType.IN) {
            Set<?> inValues = getInValues();
            return inValues.contains(selectItemValue);
        } else {
            throw new IllegalStateException("Operator could not be determined");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.