Package fr.dyade.aaa.agent
Class StringId
- java.lang.Object
-
- fr.dyade.aaa.agent.StringId
-
public final class StringId extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static intBUFLEN(package private) static char[]DigitOnes(package private) static char[]DigitTensprivate static ThreadLocalperThreadBuffer
-
Constructor Summary
Constructors Constructor Description StringId()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static intgetChars(int i, char[] buf, int idx)static StringtoStringId(char label, char sep, int x, int y, int z)Returns a string representation of id: label + x + sep + y + sep + z.
-
-
-
Field Detail
-
BUFLEN
private static final int BUFLEN
- See Also:
- Constant Field Values
-
perThreadBuffer
private static ThreadLocal perThreadBuffer
-
DigitTens
static final char[] DigitTens
-
DigitOnes
static final char[] DigitOnes
-
-
Method Detail
-
toStringId
public static final String toStringId(char label, char sep, int x, int y, int z)
Returns a string representation of id: label + x + sep + y + sep + z. At least x must be provided and higher or equal to 0, if y or z are less than 0 they are ignored.- Parameters:
label- prefixsep- separatorx- first indexy- second indexz- third index- Returns:
- the string representation of identifier
-
getChars
private static final int getChars(int i, char[] buf, int idx)
-
-