Package org.fife.ui.rtextarea
Class LineHighlightManager.LineHighlightInfoComparator
java.lang.Object
org.fife.ui.rtextarea.LineHighlightManager.LineHighlightInfoComparator
- All Implemented Interfaces:
Comparator<LineHighlightManager.LineHighlightInfo>
- Enclosing class:
LineHighlightManager
private static class LineHighlightManager.LineHighlightInfoComparator
extends Object
implements Comparator<LineHighlightManager.LineHighlightInfo>
Comparator used when adding new highlights. This is done here instead
of making
LineHighlightInfo implement
Comparable as correctly implementing the latter prevents
two LHI's pointing to the same line from correctly being distinguished
from one another. See:
https://github.com/bobbylight/RSyntaxTextArea/issues/161-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
LineHighlightInfoComparator
private LineHighlightInfoComparator()
-
-
Method Details
-
compare
public int compare(LineHighlightManager.LineHighlightInfo lhi1, LineHighlightManager.LineHighlightInfo lhi2) - Specified by:
comparein interfaceComparator<LineHighlightManager.LineHighlightInfo>
-