@Test public void testSubSequence() throws Exception { assertEquals("", new Text(new EncodedPath(new Precoded(""))).subSequence(0, 0).toString()); assertEquals("/", new Text(new EncodedPath(new Precoded("/"))).subSequence(0, 1).toString()); assertEquals("b", new Text(new EncodedPath(new Precoded("abc"))).subSequence(1, 2).toString()); assertEquals("c/d", new Text(new EncodedPath(new Precoded("abc/def"))).subSequence(2, 5).toString()); assertEquals("bc/./d", new Text(new EncodedPath(new Precoded("../abc/./def"))).subSequence(4, 10).toString()); }
@Override public CharSequence subSequence(int beginIndex, int endIndex) { return toString().subSequence(beginIndex, endIndex); }
Text implements CharSequence { @Override public CharSequence subSequence(int beginIndex, int endIndex) { return toString().subSequence(beginIndex, endIndex); } }
Text implements CharSequence { @Override public CharSequence subSequence(int beginIndex, int endIndex) { return toString().subSequence(beginIndex, endIndex); } Text(Path delegate); }
Text implements CharSequence { @Override public CharSequence subSequence(int beginIndex, int endIndex) { return toString().subSequence(beginIndex, endIndex); } Text(Path delegate); @Override int length(); @Override char charAt(int index); @Override CharSequence subSequence(int beginIndex, int endIndex); @Override String toString(); }
Text implements CharSequence { @Override public CharSequence subSequence(int beginIndex, int endIndex) { return toString().subSequence(beginIndex, endIndex); } Text(Path delegate); @Override int length(); @Override char charAt(int index); @Override CharSequence subSequence(int beginIndex, int endIndex); @Override String toString();  }