@Test public void testCharAt() throws Exception { assertEquals('h', new StringScheme("http").charAt(0)); assertEquals('t', new StringScheme("http").charAt(1)); assertEquals('t', new StringScheme("http").charAt(2)); assertEquals('p', new StringScheme("http").charAt(3)); }
@Override public char charAt(int i) { return mScheme.charAt(i); }
StringScheme implements Scheme { @Override public char charAt(int i) { return mScheme.charAt(i); } }
StringScheme implements Scheme { @Override public char charAt(int i) { return mScheme.charAt(i); } StringScheme(String scheme); }
StringScheme implements Scheme { @Override public char charAt(int i) { return mScheme.charAt(i); } StringScheme(String scheme); @Override int length(); @Override char charAt(int i); @Override CharSequence subSequence(int i, int i1); @Override String toString(); }
StringScheme implements Scheme { @Override public char charAt(int i) { return mScheme.charAt(i); } StringScheme(String scheme); @Override int length(); @Override char charAt(int i); @Override CharSequence subSequence(int i, int i1); @Override String toString();  }