@Deprecated
    public static Criteria create(String left, String operator, String right) {
        Criteria criteria = new Criteria(ValueNode.toValueNode(left));
        criteria.criteriaType = RelationalOperator.fromString(operator);
        criteria.right = ValueNode.toValueNode(right);
        return criteria;
    }
@ Deprecated public static Criteria create ( String left , String operator , String right ) { Criteria criteria = new Criteria ( ValueNode . toValueNode ( left ) ) ; criteria . criteriaType = RelationalOperator . fromString ( operator ) ; criteria . right = ValueNode . toValueNode ( right ) ; return criteria ; }
Creates a new criteria
@param left path to evaluate in criteria
@param operator operator
@param right expected value
@return a new Criteria