class MutableCharArray implements CharSequence, Cloneable {

  public void reset(CharSequence seq) {
    if (buffer == null || buffer.length < seq.length()) {
      buffer = new char[seq.length()];
    }
    this.length = seq.length();
    this.start = 0;

    for (int i = 0; i < length; i++) {
      buffer[i] = seq.charAt(i);
    }

    this.hash = hashCode(buffer, start, length);
  }

  public  MutableCharArray();
  public  MutableCharArray(CharSequence seq);
  public  MutableCharArray(char[] buffer);
  public  MutableCharArray(char[] buffer, int start, int length);

}