public class HighlightEntry<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HighlightEntry.Highlight
Highlight holds reference to the field highlighting was applied to, as well as the snipplets
|
Constructor and Description |
---|
HighlightEntry(T entity) |
Modifier and Type | Method and Description |
---|---|
void |
addSnipplets(Field field,
List<String> snipplets) |
void |
addSnipplets(String fieldname,
List<String> snipplets) |
T |
getEntity()
Get the entity the highlights are associated to
|
List<HighlightEntry.Highlight> |
getHighlights() |
public HighlightEntry(T entity)
entity
- must not be nullpublic T getEntity()
public List<HighlightEntry.Highlight> getHighlights()
public void addSnipplets(Field field, List<String> snipplets)
field
- snipplets
- Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.