public Buffer prepend(char[] str) { int len = str.length; ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, count, count); System.arraycopy(str, 0, value, count, 0); count += len; return this; }
public Buffer prepend(char[] str) { int len = str.length; ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, count, count); System.arraycopy(str, 0, value, count, 0); count += len; return this; }
public Buffer prepend(String str) { if (null == str) return prependNull(); int len = str.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); str.getChars(0, len, value, 0); count += len; return this; }
public Buffer prepend(int i) { if (i == Integer.MIN_VALUE) { prepend("-2147483648"); return this; } int appendedLength = (i < 0) ? stringSize(-i) + 1 : stringSize(i); int spaceNeeded = count + appendedLength; ensureCapacityInternal(spaceNeeded); System.arraycopy(value, 0, value, appendedLength, count); getChars(i, appendedLength, value); count = spaceNeeded; return this; }
public Buffer prepend(long l) { if (l == Long.MIN_VALUE) { append("-9223372036854775808"); return this; } int appendedLength = (l < 0) ? stringSize(-l) + 1 : stringSize(l); int spaceNeeded = count + appendedLength; ensureCapacityInternal(spaceNeeded); System.arraycopy(value, 0, value, appendedLength, count); getChars(l, appendedLength, value); count = spaceNeeded; return this; }
public Buffer prepend(char c) { ensureCapacityInternal(count + 1); System.arraycopy(value, 0, value, 1, count); value[0] = c; return this; }
public Buffer prepend(Buffer asb) { if (asb == null) return prependNull(); int len = asb.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); asb.getChars(0, len, value, 0); count += len; return this; }
public Buffer prepend(StringBuffer sb) { if (sb == null) return appendNull(); int len = sb.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); sb.getChars(0, len, value, 0); count += len; return this; }
public Buffer prepend(char c) { ensureCapacityInternal(count + 1); System.arraycopy(value, 0, value, 1, count); value[0] = c; return this; }
public Buffer prepend(StringBuffer sb) { if (sb == null) return appendNull(); int len = sb.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); sb.getChars(0, len, value, 0); count += len; return this; }
public Buffer append(StringBuffer sb) { if (sb == null) return appendNull(); int len = sb.length(); ensureCapacityInternal(count + len); sb.getChars(0, len, value, count); count += len; return this; }
public Buffer prepend(StringBuilder sb) { if (sb == null) return prependNull(); int len = sb.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); sb.getChars(0, len, value, 0); count += len; return this; }
public Buffer prepend(String str) { if (null == str) return prependNull(); int len = str.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); str.getChars(0, len, value, 0); count += len; return this; }
public Buffer prepend(Buffer asb) { if (asb == null) return prependNull(); int len = asb.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); asb.getChars(0, len, value, 0); count += len; return this; }
public Buffer prepend(StringBuilder sb) { if (sb == null) return prependNull(); int len = sb.length(); ensureCapacityInternal(count + len); System.arraycopy(value, 0, value, len, count); sb.getChars(0, len, value, 0); count += len; return this; }
public Buffer append(StringBuilder sb) { if (sb == null) return appendNull(); int len = sb.length(); ensureCapacityInternal(count + len); sb.getChars(0, len, value, count); count += len; return this; }
public Buffer append(Buffer asb) { if (asb == null) return appendNull(); int len = asb.length(); ensureCapacityInternal(count + len); asb.getChars(0, len, value, count); count += len; return this; }
public Buffer append(StringBuffer sb) { if (sb == null) return appendNull(); int len = sb.length(); ensureCapacityInternal(count + len); sb.getChars(0, len, value, count); count += len; return this; }
public Buffer append(StringBuilder sb) { if (sb == null) return appendNull(); int len = sb.length(); ensureCapacityInternal(count + len); sb.getChars(0, len, value, count); count += len; return this; }
public Buffer append(Buffer asb) { if (asb == null) return appendNull(); int len = asb.length(); ensureCapacityInternal(count + len); asb.getChars(0, len, value, count); count += len; return this; }