com.poscoict.glueframework.util
Class GlueNumberFormatUtil

java.lang.Object
  extended by com.poscoict.glueframework.util.GlueNumberFormatUtil

public class GlueNumberFormatUtil
extends Object

¼ýÀÚ, ÅëÈ­, ÆÛ¼¾Æ®¿¡ ´ëÇÑ Çü½Ä º¯È¯À» ¼öÇàÇϴ Ŭ·¡½º


Constructor Summary
GlueNumberFormatUtil()
           
 
Method Summary
static String formatCurrency(Locale locale, Number number)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.
static String formatCurrency(Locale locale, Number number, boolean groupingUsed)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.
static String formatCurrency(Number number)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.
static String formatCurrency(Number number, boolean groupingUsed)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Locale locale, Number number)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Locale locale, Number number, boolean groupingUsed)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Locale locale, Number number, boolean groupingUsed, int maxFactionDigits)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Locale locale, Number number, int maxFactionDigits)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Number number)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Number number, boolean groupingUsed)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Number number, boolean groupingUsed, int maxFactionDigits)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatNumber(Number number, int maxFactionDigits)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Locale locale, Number number)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Locale locale, Number number, boolean groupingUsed)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Locale locale, Number number, boolean groupingUsed, int maxFactionDigits)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Locale locale, Number number, int maxFactionDigits)
          Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Number number)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Number number, boolean groupingUsed)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Number number, boolean groupingUsed, int maxFactionDigits)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
static String formatPercent(Number number, int maxFactionDigits)
          ±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueNumberFormatUtil

public GlueNumberFormatUtil()
Method Detail

formatNumber

public static String formatNumber(Number number)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatNumber

public static String formatNumber(Locale locale,
                                  Number number)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatNumber

public static String formatNumber(Number number,
                                  boolean groupingUsed)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatNumber

public static String formatNumber(Locale locale,
                                  Number number,
                                  boolean groupingUsed)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatNumber

public static String formatNumber(Number number,
                                  int maxFactionDigits)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatNumber

public static String formatNumber(Locale locale,
                                  Number number,
                                  int maxFactionDigits)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatNumber

public static String formatNumber(Number number,
                                  boolean groupingUsed,
                                  int maxFactionDigits)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatNumber

public static String formatNumber(Locale locale,
                                  Number number,
                                  boolean groupingUsed,
                                  int maxFactionDigits)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ¼ýÀÚ¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
¼ýÀÚ ¹®ÀÚ¿­

formatCurrency

public static String formatCurrency(Number number)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
Returns:
ÅëÈ­ ¹®ÀÚ¿­

formatCurrency

public static String formatCurrency(Locale locale,
                                    Number number)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
Returns:
ÅëÈ­ ¹®ÀÚ¿­

formatCurrency

public static String formatCurrency(Number number,
                                    boolean groupingUsed)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
Returns:
ÅëÈ­ ¹®ÀÚ¿­

formatCurrency

public static String formatCurrency(Locale locale,
                                    Number number,
                                    boolean groupingUsed)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÅëÈ­¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
Returns:
ÅëÈ­ ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Number number)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Locale locale,
                                   Number number)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Number number,
                                   boolean groupingUsed)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Locale locale,
                                   Number number,
                                   boolean groupingUsed)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Number number,
                                   int maxFactionDigits)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Locale locale,
                                   Number number,
                                   int maxFactionDigits)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Number number,
                                   boolean groupingUsed,
                                   int maxFactionDigits)
±âº» Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­

formatPercent

public static String formatPercent(Locale locale,
                                   Number number,
                                   boolean groupingUsed,
                                   int maxFactionDigits)
Locale¿¡ ÇØ´çÇÏ´Â Çü½ÄÀ¸·Î ÆÛ¼¾Æ®¸¦ º¯È¯ÇÑ´Ù.

Parameters:
locale - ·ÎÄÉÀÏ
number - ¼ýÀÚ
groupingUsed - ±×·ì ºÐ¸®±âÈ£ Æ÷ÇÔ ¿©ºÎ
maxFactionDigits - º¯È¯µÈ ¹®ÀÚ¿­¿¡¼­ Ãâ·ÂÇÒ ¼Ò¼öÁ¡ ÀÌÇÏ ÃÖ´ë ÀÚ¸®¼ö
Returns:
ÆÛ¼¾Æ® ¹®ÀÚ¿­


Copyright © 2013–2018 POSCO ICT. All rights reserved.