@Test public void testCharAt() throws Exception { assertEquals('/', new Text(new EncodedPath(new Precoded("/"))).charAt(0)); assertEquals('a', new Text(new EncodedPath(new Precoded("abc"))).charAt(0)); assertEquals('b', new Text(new EncodedPath(new Precoded("abc"))).charAt(1)); assertEquals('c', new Text(new EncodedPath(new Precoded("abc"))).charAt(2)); assertEquals('a', new Text(new EncodedPath(new Precoded("abc/def"))).charAt(0)); assertEquals('/', new Text(new EncodedPath(new Precoded("abc/def"))).charAt(3)); assertEquals('f', new Text(new EncodedPath(new Precoded("abc/def"))).charAt(6)); assertEquals('.', new Text(new EncodedPath(new Precoded("../abc/./def"))).charAt(0)); assertEquals('/', new Text(new EncodedPath(new Precoded("../abc/./def"))).charAt(6)); assertEquals('f', new Text(new EncodedPath(new Precoded("../abc/./def"))).charAt(11)); }
@Override public char charAt(int index) { return toString().charAt(index); }
Text implements CharSequence { @Override public char charAt(int index) { return toString().charAt(index); } }
Text implements CharSequence { @Override public char charAt(int index) { return toString().charAt(index); } Text(Path delegate); }
Text implements CharSequence { @Override public char charAt(int index) { return toString().charAt(index); } 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 char charAt(int index) { return toString().charAt(index); } Text(Path delegate); @Override int length(); @Override char charAt(int index); @Override CharSequence subSequence(int beginIndex, int endIndex); @Override String toString();  }