Пример #1
0
 @Override
 public String getFormattedValue() {
   if (formatter == null) {
     formatter = new FloatFormatter();
   }
   return formatter.formatFloat(value);
 }
Пример #2
0
 @Override
 public String toString() {
   if (formatter == null) {
     formatter = new FloatFormatter();
   }
   return formatter.formatFloatPrecisly(value);
 }