Beispiel #1
0
 /**
  * Inserts the string representation of the specified {@code int} value at
  * the specified {@code offset}. The {@code int} value is converted to a
  * String according to the rule defined by {@link String#valueOf(int)}.
  *
  * @param offset
  *            the index to insert at.
  * @param i
  *            the {@code int} value to insert.
  * @return this builder.
  * @throws StringIndexOutOfBoundsException
  *             if {@code offset} is negative or greater than the current
  *             {@code length()}.
  * @see String#valueOf(int)
  */
 public StringBuilder insert(int offset, int i)
 {
     insert0(offset, Integer.toString(i));
     return(this);
 }
Beispiel #2
0
 /**
  * Returns a string containing a concise, human-readable description of the
  * specified byte value.
  *
  * @param value
  *            the byte to convert to a string.
  * @return a printable representation of {@code value}.
  */
 public static String toString(byte value)
 {
     return(Integer.toString(value));
 }
Beispiel #3
0
 /**
  * Appends the string representation of the specified {@code int} value. The
  * {@code int} value is converted to a string according to the rule defined
  * by {@link String#valueOf(int)}.
  *
  * @param i
  *            the {@code int} value to append.
  * @return this builder.
  * @see String#valueOf(int)
  */
 public StringBuilder append(int i)
 {
     append0(Integer.toString(i));
     return(this);
 }
Beispiel #4
0
 public override String ToString()
 {
     return(Integer.toString(value));
 }