List of usage examples for java.util Locale US
Locale US
To view the source code for java.util Locale US.
Click Source Link
From source file:com.jaspersoft.studio.editor.preview.input.array.number.ByteElement.java
protected boolean isValid(String number) { return ByteValidator.getInstance().isValid(number, Locale.US); }
From source file:com.jaspersoft.studio.editor.preview.input.array.number.FloatElement.java
protected boolean isValid(String number) { return FloatValidator.getInstance().isValid(number, Locale.US); }
From source file:com.jaspersoft.studio.editor.preview.input.array.number.ShortElement.java
protected boolean isValid(String number) { return ShortValidator.getInstance().isValid(number, Locale.US); }
From source file:com.sfs.Formatter.java
/** * To currency.// w ww .j av a2 s . c o m * * @param value the value * * @return the string */ public static String toCurrency(final double value) { String currency = ""; NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(Locale.US); currency = currencyFormatter.format(value); return currency; }
From source file:com.jaspersoft.studio.editor.preview.input.array.number.DoubleElement.java
protected boolean isValid(String number) { return DoubleValidator.getInstance().isValid(number, Locale.US); }
From source file:com.jaspersoft.studio.editor.preview.input.array.number.IntegerElement.java
protected boolean isValid(String number) { return IntegerValidator.getInstance().isValid(number, Locale.US); }
From source file:net.eledge.android.europeana.tools.UriHelper.java
public static String getRecordUrl(String apiKey, String id) { return String.format(Locale.US, URL_API_RECORD, id, apiKey); }
From source file:de.upb.wdqa.wdvd.processors.statistics.FrequencyUtils.java
public static String formatFrequency(Frequency frequency, int maxCount) { List<Map.Entry<Comparable<?>, Long>> list = sortByFrequency(frequency); String result = ""; for (int i = 0; i < maxCount && i < list.size(); i++) { String percent = String.format(Locale.US, "%.0f", frequency.getPct(list.get(i).getKey()) * 100) + "%"; result += list.get(i).getKey() + "," + list.get(i).getValue() + "," + percent + "\n"; }/*from w w w . j a va2 s .c o m*/ return result; }
From source file:com.jaspersoft.studio.editor.preview.input.array.number.BigDecimalElement.java
protected boolean isValid(String number) { return BigDecimalValidator.getInstance().isValid(number, Locale.US); }
From source file:org.springframework.data.rest.core.config.JsonSchemaFormat.java
@JsonValue public String toString() { return name().toLowerCase(Locale.US).replaceAll("_", "-"); }