com.jidesoft.diff
Class CodeEditorCharSequence
java.lang.Object
com.jidesoft.diff.CodeEditorCharSequence
- All Implemented Interfaces:
- CharSequence
public class CodeEditorCharSequence
- extends Object
- implements CharSequence
The CharSequence class used by CodeEditorDiffPane and CodeEditorMergePane to save memory usage.
- Since:
- 3.4.1
CodeEditorCharSequence
public CodeEditorCharSequence(CodeEditor editor,
int line,
boolean ignoreLeadingTrailingSpaces)
- The constructor.
- Parameters:
editor
- the code editorline
- the line number inside the code editorignoreLeadingTrailingSpaces
- the flag to indicate if leading and trailing spaces should be ignored
length
public int length()
- Specified by:
length
in interface CharSequence
charAt
public char charAt(int index)
- Specified by:
charAt
in interface CharSequence
subSequence
public CharSequence subSequence(int start,
int end)
- Specified by:
subSequence
in interface CharSequence
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Specified by:
toString
in interface CharSequence
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object