@Override
    public int compareTo(final Value other) {
        if (other == null) {
            return 1;
        }
        if (this.isNumeric() && other.isNumeric()) {
            return this.getAsDecimal().compareTo(other.getAsDecimal());
        }
        if (this.isNumeric() || other.isNumeric()) {
            return this.isNumeric() ? -1 : 1;
        }
        return this.getAsString().compareTo(other.getAsString());
    }
Encapsulates a single value for handling in {@link Formula}. Provides e.g. type conversions.
<br>
Supports raw values of type String, CharSequence, Double, Long, BigInterger and BigDecimal
main/src/main/java/cgeo/geocaching/utils/formulas/Value.java