@Test public void testUnterminatedLineWithOffsetAndLengths() { final SingleCharSequenceLine line = new SingleCharSequenceLine("Hello worldAndSomeCrapThereAfter", "Hello ".length(), "world".length(), 0); testLine(line, "world", ""); }
@Override public int length() { return contentLength + lineEndingLength; }
SingleCharSequenceLine implements Line { @Override public int length() { return contentLength + lineEndingLength; } }
SingleCharSequenceLine implements Line { @Override public int length() { return contentLength + lineEndingLength; } SingleCharSequenceLine(CharSequence charSequence, int lineEndingLength);  SingleCharSequenceLine(CharSequence charSequence, int offset, int contentLength, int lineEndingLength); }
SingleCharSequenceLine implements Line { @Override public int length() { return contentLength + lineEndingLength; } SingleCharSequenceLine(CharSequence charSequence, int lineEndingLength);  SingleCharSequenceLine(CharSequence charSequence, int offset, int contentLength, int lineEndingLength); @Override int length(); @Override char charAt(int index); @Override CharSequence subSequence(int start, int end); @Override String getContent(); @Override int getContentLength(); @Override String getLineEnding(); @Override int getLineEndingLength(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
SingleCharSequenceLine implements Line { @Override public int length() { return contentLength + lineEndingLength; } SingleCharSequenceLine(CharSequence charSequence, int lineEndingLength);  SingleCharSequenceLine(CharSequence charSequence, int offset, int contentLength, int lineEndingLength); @Override int length(); @Override char charAt(int index); @Override CharSequence subSequence(int start, int end); @Override String getContent(); @Override int getContentLength(); @Override String getLineEnding(); @Override int getLineEndingLength(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }