/** Appends the string representation of the specified {@code int} value. The {@code int} value is converted to a string * without memory allocation. * * @param value the {@code int} value to append. * @param minLength the minimum number of characters to add * @return this builder. * @see String#valueOf(int) */ public StringBuilder append (int value, int minLength) { return append(value, minLength, '0'); }
/** Appends the string representation of the specified {@code long} value. The {@code long} value is converted to a string * without memory allocation. * * @param value the {@code long} value. * @param minLength the minimum number of characters to add * @return this builder. */ public StringBuilder append (long value, int minLength) { return append(value, minLength, '0'); }
/** Appends the string representation of the specified {@code int} value. The {@code int} value is converted to a string * without memory allocation. * * @param value the {@code int} value to append. * @param minLength the minimum number of characters to add * @return this builder. * @see String#valueOf(int) */ public StringBuilder append (int value, int minLength) { return append(value, minLength, '0'); }
/** Appends the string representation of the specified {@code int} value. The {@code int} value is converted to a string * without memory allocation. * * @param value the {@code int} value to append. * @return this builder. * @see String#valueOf(int) */ public StringBuilder append (int value) { return append(value, 0); }
/** Appends the string representation of the specified {@code long} value. The {@code long} value is converted to a string * without memory allocation. * * @param value the {@code long} value. * @return this builder. */ public StringBuilder append (long value) { return append(value, 0); }
@Override protected void getStatus (StringBuilder stringBuilder) { super.getStatus(stringBuilder); stringBuilder.append(" use arrow keys to walk around, space to attack, Z to toggle attached node."); }
@Override protected void getStatus (StringBuilder stringBuilder) { super.getStatus(stringBuilder); for (final ModelInstance instance : instances) { if (instance.animations.size > 0) { stringBuilder.append(" press space or menu to switch animation"); break; } } }
public Label (CharSequence text, LabelStyle style) { if (text != null) this.text.append(text); setStyle(style); if (text != null && text.length() > 0) setSize(getPrefWidth(), getPrefHeight()); }
public StringBuilder toString (final StringBuilder sb) { sb.setLength(0); for (int i = 0; i < counters.size; i++) { if (i != 0) sb.append("; "); counters.get(i).toString(sb); } return sb; } }