public class BTools extends Object
| Constructor and Description |
|---|
BTools() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getIndexCharsCount(int MaxIndex)
getIndexCharsCount
public static int getIndexCharsCount( int MaxIndex ) Returns chars count for max value of index. Example: Max value of index is 150 and chars count is 3. It is important for statement of indexed values. Index columns can have the same width for all rouws. |
static String |
getMtLvESS(int mtLv)
getMtLvESS
public static String getMtLvESS( int mtLv ) Returns string. |
static String |
getMtLvISS()
getMtLvISS
public static String getMtLvISS() Returns string. |
static String |
getSBln(boolean... blnA)
getSBln
public static String getSBln( boolean... |
static String |
getSDbl(double Value,
int DecPrec)
getSDbl
public static String getSDbl( double Value, int DecPrec ) Returns double converted to string. If Value is Double.NaN returns "NaN". If DecPrec is < 0 is DecPrec set 0. |
static String |
getSDbl(double Value,
int DecPrec,
boolean ShowPlusSign)
getSDbl
public static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign ) Returns double converted to string. If Value is Double.NaN returns "NaN". If DecPrec is < 0 is DecPrec set 0. If ShowPlusSign is true: - If Value is > 0 sign is '+'. - If Value is 0 sign is ' '. |
static String |
getSDbl(double Value,
int DecPrec,
boolean ShowPlusSign,
int StringLength)
getSDbl
public static String getSDbl( double Value, int DecPrec, boolean ShowPlusSign, int StringLength ) Returns double converted to string. If Value is Double.NaN returns "NaN". If DecPrec is < 0 is DecPrec set 0. If ShowPlusSign is true: - If Value is > 0 sign is '+'. - If Value is 0 sign is ' '. If StringLength is > base double string length before base double string adds relevant spaces. If StringLength is <= base double string length returns base double string. |
static String |
getSInt(int Value)
getSInt
public static String getSInt( int Value ) Returns int converted to string. |
static String |
getSInt(int Value,
int CharsCount)
getSInt
public static String getSInt( int Value, int CharsCount ) Returns int converted to string. If CharsCount > base int string length before base int string adds relevant spaces. If CharsCount <= base int string length returns base int string. |
static String |
getSInt(int Value,
int CharsCount,
char LeadingChar)
getSInt
public static String getSInt( int Value, int CharsCount, char LeadingChar ) Returns int converted to string. If CharsCount > base int string length before base int string adds relevant leading chars. If CharsCount <= base int string length returns base int string. |
static String |
getSIntA(int... intA)
getSIntA
public static String getSIntA( int... |
static String |
getSLcDtTm()
getSLcDtTm
public static String getSLcDtTm() Returns local datetime as string. Datetime format is "mm:ss.SSS". |
static String |
getSLcDtTm(String FormatS)
getSLcDtTm
public static String getSLcDtTm( String FormatS ) Returns local datetime as string. Datetime format is param. |
static String |
getSpaces(int SpacesCount)
getSpaces
public static String getSpaces( int SpacesCount ) Returns asked count of spaces. If count of spaces is < 0 returns '?'. |
public static String getMtLvESS(int mtLv)
mtLv - - method levelpublic static String getMtLvISS()
public static String getSpaces(int SpacesCount)
SpacesCount - = spaces countpublic static String getSBln(boolean... blnA)
blnA - public static String getSDbl(double Value, int DecPrec)
Value - - valueDecPrec - - decimal precisionpublic static String getSDbl(double Value, int DecPrec, boolean ShowPlusSign)
Value - - valueDecPrec - - decimal precisionShowPlusSign - - show plus signpublic static String getSDbl(double Value, int DecPrec, boolean ShowPlusSign, int StringLength)
Value - - valueDecPrec - - decimal precisionShowPlusSign - - show plus signStringLength - - string lengthpublic static String getSInt(int Value, int CharsCount)
Value - - valueCharsCount - - chars countpublic static String getSInt(int Value, int CharsCount, char LeadingChar)
Value - - valueCharsCount - - chars countLeadingChar - - leading charpublic static String getSInt(int Value)
Value - public static String getSIntA(int... intA)
intA - - int value(s) (one or more)public static int getIndexCharsCount(int MaxIndex)
MaxIndex - - max value of indexpublic static String getSLcDtTm()
Copyright © 2022. All rights reserved.