Class FormattedLines
java.lang.Object
org.opengrok.indexer.search.context.FormattedLines
Represents structured results from 
ContextFormatter that can be
 merged with other instances.
 
 UnifiedHighlighter returns results separated by field, and
 OGKUnifiedHighlighter merges them together to return a coherent
 result for presentation.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintgetCount()booleanmerge(FormattedLines other) Creates a new instance with lines merged from this instance andother.pop()Removes the highest line from the instance.Sets the specified String line for the specified line number, replacing any previous entry for the same line number.voidvoidsetLimited(boolean value) toString() 
- 
Constructor Details
- 
FormattedLines
public FormattedLines() 
 - 
 - 
Method Details
- 
getCount
public int getCount() - 
isLimited
public boolean isLimited() - 
setLimited
public void setLimited(boolean value)  - 
pop
Removes the highest line from the instance.- Returns:
 - a defined value
 - Throws:
 NoSuchElementException- if the instance is empty
 - 
put
Sets the specified String line for the specified line number, replacing any previous entry for the same line number.- Parameters:
 lineno- a valueline- a defined instance- Returns:
 - the former value or 
null 
 - 
merge
Creates a new instance with lines merged from this instance andother. Any lines in common for the same line number are taken from this instance rather thanother; and likewise forgetFooter().isLimited()will betrueif either istrue, but the value is suspect since it cannot be truly known if the merged result is actually the unlimited result.- Parameters:
 other- a defined instance- Returns:
 - a defined instance
 
 - 
toString
 
 -