Class StringId


  • public final class StringId
    extends Object
    • Field Detail

      • perThreadBuffer

        private static ThreadLocal perThreadBuffer
      • DigitTens

        static final char[] DigitTens
      • DigitOnes

        static final char[] DigitOnes
    • Constructor Detail

      • StringId

        public StringId()
    • 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 - prefix
        sep - separator
        x - first index
        y - second index
        z - third index
        Returns:
        the string representation of identifier
      • getChars

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