fr.dyade.aaa.agent
Class StringId

java.lang.Object
  extended by fr.dyade.aaa.agent.StringId

public final class StringId
extends java.lang.Object


Field Summary
private static int BUFLEN
           
(package private) static char[] DigitOnes
           
(package private) static char[] DigitTens
           
private static java.lang.ThreadLocal perThreadBuffer
           
 
Constructor Summary
StringId()
           
 
Method Summary
private static int getChars(int i, char[] buf, int idx)
           
static java.lang.String toStringId(char label, char sep, int x, int y, int z)
          Returns a string representation of id: label + x + sep + y + sep + z.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFLEN

private static final int BUFLEN
See Also:
Constant Field Values

perThreadBuffer

private static java.lang.ThreadLocal perThreadBuffer

DigitTens

static final char[] DigitTens

DigitOnes

static final char[] DigitOnes
Constructor Detail

StringId

public StringId()
Method Detail

toStringId

public static final java.lang.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.


getChars

private static final int getChars(int i,
                                  char[] buf,
                                  int idx)


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.