@Test public void testSubSequence() { AppendableCharSequence master = new AppendableCharSequence(26); master.append("abcdefghijlkmonpqrstuvwxyz"); assertEquals("abcdefghij", master.subSequence(0, 10).toString()); }
@Override public AppendableCharSequence subSequence(int start, int end) { return new AppendableCharSequence(Arrays.copyOfRange(chars, start, end)); }
AppendableCharSequence implements CharSequence, Appendable { @Override public AppendableCharSequence subSequence(int start, int end) { return new AppendableCharSequence(Arrays.copyOfRange(chars, start, end)); } }
AppendableCharSequence implements CharSequence, Appendable { @Override public AppendableCharSequence subSequence(int start, int end) { return new AppendableCharSequence(Arrays.copyOfRange(chars, start, end)); } AppendableCharSequence(int length); private  AppendableCharSequence(char[] chars); }
AppendableCharSequence implements CharSequence, Appendable { @Override public AppendableCharSequence subSequence(int start, int end) { return new AppendableCharSequence(Arrays.copyOfRange(chars, start, end)); } AppendableCharSequence(int length); private  AppendableCharSequence(char[] chars); @Override int length(); @Override char charAt(int index); @Override AppendableCharSequence subSequence(int start, int end); @Override AppendableCharSequence append(char c); @Override AppendableCharSequence append(CharSequence csq); @Override AppendableCharSequence append(CharSequence csq, int start, int end); void reset(); @Override String toString(); String substring(int start, int end); }
AppendableCharSequence implements CharSequence, Appendable { @Override public AppendableCharSequence subSequence(int start, int end) { return new AppendableCharSequence(Arrays.copyOfRange(chars, start, end)); } AppendableCharSequence(int length); private  AppendableCharSequence(char[] chars); @Override int length(); @Override char charAt(int index); @Override AppendableCharSequence subSequence(int start, int end); @Override AppendableCharSequence append(char c); @Override AppendableCharSequence append(CharSequence csq); @Override AppendableCharSequence append(CharSequence csq, int start, int end); void reset(); @Override String toString(); String substring(int start, int end);  }