Method to construct the between expression for short

@param startValue the start value
@param endValue the end value
@return Expression
351220
public Expression<Short> between(Short startValue, Short endValue) {
		String valueString = "'" + startValue + "' AND '" + endValue + "'";
		return new Expression<Short>(this, Operation.between, valueString);
	}
116328
public Expression<Short> eq(short value) {
		String valueString = "'" + value + "'";
		return new Expression<Short>(this, Operation.eq, valueString);
	}
36594
public static SimpleInterval<Date> between(
        Date start,
        Date end
    ) {

        return OLD_DATE_FACTORY.between(start, end);

    }
839056
public SqlInfo buildBetweenSql(String fieldText, Object startValue, Object endValue) {
        /* 根据开始文本和结束文本判断执行是大于、小于还是区间的查询sql和参数的生成 */
        if (startValue != null && endValue == null) {
            join.append(prefix).append(fieldText).append(ZealotConst.GTE_SUFFIX);
            params.add(startValue);
        } else if (startValue == null && endValue != null) {
            join.append(prefix).append(fieldText).append(ZealotConst.LTE_SUFFIX);
            params.add(endValue);
        } else {
            join.append(prefix).append(fieldText).append(ZealotConst.BT_AND_SUFFIX);
            params.add(startValue);
            params.add(endValue);
        }

        return sqlInfo.setJoin(join).setParams(params);
    }
1138384
public short uShortValue() throws OtpErlangRangeException {
        final long l = longValue();
        final short i = (short) l;

        if (i != l) {
            throw new OtpErlangRangeException("Value too large for short: "
                    + val);
        } else if (i < 0) {
            throw new OtpErlangRangeException("Value not positive: " + val);
        }

        return i;
    }
1117148
public PointExpression<Point> startPoint() {
        if (startPoint == null) {
            startPoint = GeometryExpressions.pointOperation(SpatialOps.START_POINT, mixin);
        }
        return startPoint;
    }
1162528
int rangeEnd(int start, int limitp, int val) {
        int c;
        int limit = Math.min(highStart, limitp);

        for (c = start+1; c < limit; c++) {
            if (get(c) != val) {
                break;
            }
        }
        if (c >= highStart) {
            c = limitp;
        }
        return c - 1;
    }
111873
public Expression<Integer> between(Integer startValue, Integer endValue) {
		String valueString = "'" + startValue + "' AND '" + endValue + "'";
		return new Expression<Integer>(this, Operation.between, valueString);
	}
593642
public final <A extends Number & Comparable<?>> BooleanExpression between(@Nullable Expression<A> from, @Nullable Expression<A> to) {
        if (from == null) {
            if (to != null) {
                return Expressions.booleanOperation(Ops.LOE, mixin, to);
            } else {
                throw new IllegalArgumentException("Either from or to needs to be non-null");
            }
        } else if (to == null) {
            return Expressions.booleanOperation(Ops.GOE, mixin, from);
        } else {
            return Expressions.booleanOperation(Ops.BETWEEN, mixin, from, to);
        }
    }
409787
@SuppressWarnings("unchecked")
	@Override
	public T between(final String col, final Object fromValue, final Object toValue) {
		context().param(CaseFormat.CAMEL_CASE.convert(col), new Between(col, fromValue, toValue));
		this.useOperator = true;
		return (T) this;
	}
1032494
public static Short toShort(Object value, Short defaultValue) {
		return convert(Short.class, value, defaultValue);
	}
462408
public Expression<Short> gte(short value) {
		String valueString = "'" + value + "'";
		return new Expression<Short>(this, Operation.gte, valueString);
	}
212716
public short shortValue() throws OtpErlangRangeException {
        final long l = longValue();
        final short i = (short) l;

        if (i != l) {
            throw new OtpErlangRangeException("Value too large for short: "
                    + val);
        }

        return i;
    }
686380
public static int findEndOfSubExpression(String expression, int start) {
		int count = 0;
		for (int i = start; i < expression.length(); i++) {
			switch (expression.charAt(i)) {
				case '(': {
					count++;
					break;
				}
				case ')': {
					count--;
					if (count == 0) {
						return i;
					}
					break;
				}
			}
		}
		throw new IllegalArgumentException("can't parse expression [" + expression + "]: end of subexpression not found");
	}
1363388
public static Between between( String property, int minimum, int maximum)
    {
    return new Between( notLessThan( property, minimum), notMoreThan( property, maximum));
    }
757552
public function filterRange($attribute, $startValue, $endValue)
    {
        $filter = $startValue . '..' . $endValue;

        return $this->filter($attribute, $filter);
    }
264048
@Deprecated
    public DataFindRequest range(Integer begin, Integer end) {
        this.begin = begin;
        if (end != null) {
            //'maxResults' should be 1 greater than a 'to' value.
            maxResults = end - (begin == null ? 0 : begin) + 1;
        }

        return this;
    }