示例#1
0
 protected String format(Date value) {
   if (value == null) return nullValue;
   if (dateFormatter != null) return dateFormatter.format(value);
   return value.toString();
 }
示例#2
0
 protected String format(Long value) {
   if (value == null) return nullValue;
   if (longFormatter != null) return longFormatter.format(value);
   return value.toString();
 }
示例#3
0
 protected String format(Number value) {
   if (value == null) return nullValue;
   if (numberFormatter != null) return numberFormatter.format(value);
   return value.toString();
 }
示例#4
0
 protected String format(Short value) {
   if (value == null) return nullValue;
   if (shortFormatter != null) return shortFormatter.format(value);
   return value.toString();
 }
示例#5
0
 protected String format(Integer value) {
   if (value == null) return nullValue;
   if (intFormatter != null) return intFormatter.format(value);
   return value.toString();
 }
示例#6
0
 protected String format(Boolean value) {
   if (value == null) return nullValue;
   if (booleanFormatter != null) return booleanFormatter.format(value);
   return value.booleanValue() ? trueValue : falseValue;
 }
示例#7
0
 protected String format(Character value) {
   if (value == null) return nullValue;
   if (charFormatter != null) return charFormatter.format(value);
   return value.toString();
 }
示例#8
0
 protected String format(float value) {
   if (floatFormatter != null) return floatFormatter.format(value);
   return String.valueOf(value);
 }
示例#9
0
 protected String format(double value) {
   if (doubleFormatter != null) return doubleFormatter.format(value);
   return String.valueOf(value);
 }
示例#10
0
 protected String format(int value) {
   if (intFormatter != null) return intFormatter.format(value);
   return String.valueOf(value);
 }
示例#11
0
 protected String format(long value) {
   if (longFormatter != null) return longFormatter.format(value);
   return String.valueOf(value);
 }
示例#12
0
 protected String format(short value) {
   if (shortFormatter != null) return shortFormatter.format(value);
   return String.valueOf(value);
 }
示例#13
0
 protected String format(char value) {
   if (charFormatter != null) return charFormatter.format(value);
   return String.valueOf(value);
 }
示例#14
0
 protected String format(byte value) {
   if (byteFormatter != null) return byteFormatter.format(value);
   return String.valueOf(value);
 }
示例#15
0
 protected String format(boolean value) {
   if (booleanFormatter != null) return booleanFormatter.format(value);
   return value ? trueValue : falseValue;
 }
示例#16
0
 protected String format(Object value) {
   if (value == null) return nullValue;
   if (formatter != null) return formatter.format(value);
   return StringUtils.toString(value);
 }