java.lang.Objectorg.objectweb.telosys.util.NumUtil
Method Summary | |
static java.lang.String |
formatInt(int iNbr,
int iMinLength)
|
static java.lang.String |
formatInt(int iNbr,
int iLength,
boolean bFixedSize,
char cAppended)
Méthode permettant de formater un nombre de type int en le forçant à afficher un nombre donné de caractères. |
static java.lang.String |
formatInt(int iValue,
java.lang.String sFormat)
|
static java.lang.String |
formatInt(int iValue,
java.lang.String sFormat,
java.lang.String sLanguage)
Formats an int value using a standard Java format string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String formatInt(int iNbr, int iLength, boolean bFixedSize, char cAppended)
iNbr
- Le nombre de type int à formateriLength
- La taille minimum de ce nombre (nombre de chiffres)bFixedSize
- True si la taille est fixecAppended
- Le caractère éventuellement ajouté au début de la chaine
pour obtenir un nombre en taille fixe (ex: '0' ou ' ')
public static java.lang.String formatInt(int iNbr, int iMinLength)
iNbr
- :iMinLength
- :
public static java.lang.String formatInt(int iValue, java.lang.String sFormat, java.lang.String sLanguage)
iValue
- : the value to formatsFormat
- : Standard Java ChoiceFormat or DecimalFormatsLanguage
- : ISO Language Code ( ie "fr"=French, "en"=English )
public static java.lang.String formatInt(int iValue, java.lang.String sFormat)
iValue
- : the value to formatsFormat
- : Standard Java ChoiceFormat or DecimalFormat