/** * Returns a flag indicating if the given highlighter is last in the * list of highlighters registered on the target. If so returns true. * If not, it has the side-effect of removing the highlighter and returns false. * * @param searchHighlighter the highlighter to check for being last * @return a boolean indicating whether the highlighter is last. */ private boolean isInPipeline(Highlighter searchHighlighter) { Highlighter[] inPipeline = getHighlighters(); if ((inPipeline.length > 0) && (searchHighlighter.equals(inPipeline[inPipeline.length -1]))) { return true; } removeHighlighter(searchHighlighter); return false; }
/** * Returns a flag indicating if the given highlighter is last in the * list of highlighters registered on the target. If so returns true. * If not, it has the side-effect of removing the highlighter and returns false. * * @param searchHighlighter the highlighter to check for being last * @return a boolean indicating whether the highlighter is last. */ private boolean isInPipeline(Highlighter searchHighlighter) { Highlighter[] inPipeline = getHighlighters(); if ((inPipeline.length > 0) && (searchHighlighter.equals(inPipeline[inPipeline.length -1]))) { return true; } removeHighlighter(searchHighlighter); return false; }
/** * Returns a flag indicating if the given highlighter is last in the * list of highlighters registered on the target. If so returns true. * If not, it has the side-effect of removing the highlighter and returns false. * * @param searchHighlighter the highlighter to check for being last * @return a boolean indicating whether the highlighter is last. */ private boolean isInPipeline(Highlighter searchHighlighter) { Highlighter[] inPipeline = getHighlighters(); if ((inPipeline.length > 0) && (searchHighlighter.equals(inPipeline[inPipeline.length -1]))) { return true; } removeHighlighter(searchHighlighter); return false; }
/** * Returns a flag indicating if the given highlighter is last in the * list of highlighters registered on the target. If so returns true. * If not, it has the side-effect of removing the highlighter and returns false. * * @param searchHighlighter the highlighter to check for being last * @return a boolean indicating whether the highlighter is last. */ private boolean isInPipeline(Highlighter searchHighlighter) { Highlighter[] inPipeline = getHighlighters(); if ((inPipeline.length > 0) && (searchHighlighter.equals(inPipeline[inPipeline.length -1]))) { return true; } removeHighlighter(searchHighlighter); return false; }
/** * Returns a flag indicating if the given highlighter is last in the * list of highlighters registered on the target. If so returns true. * If not, it has the side-effect of removing the highlighter and returns false. * * @param searchHighlighter the highlighter to check for being last * @return a boolean indicating whether the highlighter is last. */ private boolean isInPipeline(Highlighter searchHighlighter) { Highlighter[] inPipeline = getHighlighters(); if ((inPipeline.length > 0) && (searchHighlighter.equals(inPipeline[inPipeline.length -1]))) { return true; } removeHighlighter(searchHighlighter); return false; }