JIDE 3.5.15

com.jidesoft.diff
Class CodeEditorCharSequence

java.lang.Object
  extended by 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

Constructor Summary
CodeEditorCharSequence(CodeEditor editor, int line, boolean ignoreLeadingTrailingSpaces)
          The constructor.
 
Method Summary
 char charAt(int index)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeEditorCharSequence

public CodeEditorCharSequence(CodeEditor editor,
                              int line,
                              boolean ignoreLeadingTrailingSpaces)
The constructor.

Parameters:
editor - the code editor
line - the line number inside the code editor
ignoreLeadingTrailingSpaces - the flag to indicate if leading and trailing spaces should be ignored
Method Detail

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

JIDE 3.5.15