Code example for NumberFormat

Methods: format

0
            return format.format(value);
        } 
 
        @Override 
        public String format(double value) {
            return format.format(value);
        } 
 
        public static class Pattern extends Number { 
 
            private static final DecimalFormatSymbols SYMBOLS = new DecimalFormatSymbols(Locale.ROOT);
 
            static final byte ID = 4;
 
            String pattern;
 
            Pattern() {} // for serialization 
 
            public Pattern(String pattern) {
                super(new DecimalFormat(pattern, SYMBOLS));