Class LineHighlightManager.LineHighlightInfoComparator

  • All Implemented Interfaces:
    java.util.Comparator<LineHighlightManager.LineHighlightInfo>
    Enclosing class:
    LineHighlightManager

    private static class LineHighlightManager.LineHighlightInfoComparator
    extends java.lang.Object
    implements java.util.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