class ShardingValueWrapper {

    public String toString(final String format) {
        if (value instanceof Date) {
            return new SimpleDateFormat(format).format(((Date) value).getTime());
        }
        if (value instanceof Number) {
            return new SimpleDateFormat(format).format(((Number) value).longValue());
        }
        return toString();
    }

    public  ShardingValueWrapper(final Comparable<?> value);

}