@Test public void charAt() throws Exception { }
@Override public char charAt(int i) { if (i < 0) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d is negative.", i)); } if (mStart + i >= mEnd) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d exceeds length %d", i, length())); } return mEncoded.charAt(i + mStart); }
Precoded implements UriEncoded { @Override public char charAt(int i) { if (i < 0) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d is negative.", i)); } if (mStart + i >= mEnd) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d exceeds length %d", i, length())); } return mEncoded.charAt(i + mStart); } }
Precoded implements UriEncoded { @Override public char charAt(int i) { if (i < 0) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d is negative.", i)); } if (mStart + i >= mEnd) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d exceeds length %d", i, length())); } return mEncoded.charAt(i + mStart); } Precoded(CharSequence encoded); private  Precoded(CharSequence encoded, int start, int end); }
Precoded implements UriEncoded { @Override public char charAt(int i) { if (i < 0) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d is negative.", i)); } if (mStart + i >= mEnd) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d exceeds length %d", i, length())); } return mEncoded.charAt(i + mStart); } Precoded(CharSequence encoded); private  Precoded(CharSequence encoded, int start, int end); @Override UriEncoded normalized(); @Override CharSequence decoded(String charset); @Override CharSequence decoded(); @Override int length(); @Override char charAt(int i); @Override UriEncoded subSequence(int startIndex, int endIndex); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Precoded implements UriEncoded { @Override public char charAt(int i) { if (i < 0) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d is negative.", i)); } if (mStart + i >= mEnd) { throw new ArrayIndexOutOfBoundsException(String.format("Index %d exceeds length %d", i, length())); } return mEncoded.charAt(i + mStart); } Precoded(CharSequence encoded); private  Precoded(CharSequence encoded, int start, int end); @Override UriEncoded normalized(); @Override CharSequence decoded(String charset); @Override CharSequence decoded(); @Override int length(); @Override char charAt(int i); @Override UriEncoded subSequence(int startIndex, int endIndex); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }