Ejemplo n.º 1
0
 /*
  * (non-Javadoc)
  * @see java.lang.Appendable#append(java.lang.CharSequence, int, int)
  */
 public Appendable append(StringValue csq, int start, int end) {
   final int otherLen = end - start;
   grow(this.len + otherLen);
   System.arraycopy(csq.value, start, this.value, this.len, otherLen);
   this.len += otherLen;
   return this;
 }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  * @see java.lang.Appendable#append(java.lang.CharSequence, int, int)
  */
 @Override
 public Appendable append(CharSequence csq, int start, int end) {
   final int otherLen = end - start;
   grow(this.len + otherLen);
   for (int pos = start; pos < end; pos++) {
     this.value[this.len + pos] = csq.charAt(pos);
   }
   this.len += otherLen;
   return this;
 }
Ejemplo n.º 3
0
 /*
  * (non-Javadoc)
  * @see java.lang.Appendable#append(char)
  */
 @Override
 public Appendable append(char c) {
   grow(this.len + 1);
   this.value[this.len++] = c;
   return this;
 }