Java Number Format Pattern getTeamIDFormat()

Here you can find the source of getTeamIDFormat()

Description

get Team ID Format

License

Open Source License

Declaration

public static NumberFormat getTeamIDFormat() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.NumberFormat;

public class Main {
    public static NumberFormat getTeamIDFormat() {
        NumberFormat format = NumberFormat.getIntegerInstance();
        format.setMinimumIntegerDigits(1);
        format.setMaximumIntegerDigits(4);
        format.setGroupingUsed(false);/*from ww w  .ja v  a  2  s .c  o m*/
        format.setParseIntegerOnly(true);
        return format;
    }
}

Related

  1. getOneFractionDigitNumberFormat()
  2. getPriceFormat()
  3. getScientificFormatter(int precision)
  4. getSeparator(final NumberFormat format)
  5. getStrFormatTwoPoint(float param)
  6. getUiNumberFormat()
  7. getUSNumberFormatter()
  8. getValueFormatted(String name, String value)
  9. getValueFormatter()