Class BreakIteratorShrinkingAdjuster
- java.lang.Object
-
- org.apache.lucene.search.matchhighlight.BreakIteratorShrinkingAdjuster
-
- All Implemented Interfaces:
PassageAdjuster
public class BreakIteratorShrinkingAdjuster extends Object implements PassageAdjuster
APassageAdjuster
that adjusts thePassage
range to word boundaries hinted by the givenBreakIterator
.
-
-
Constructor Summary
Constructors Constructor Description BreakIteratorShrinkingAdjuster()
BreakIteratorShrinkingAdjuster(BreakIterator bi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetRange
adjust(Passage passage)
void
currentValue(CharSequence value)
-
-
-
Constructor Detail
-
BreakIteratorShrinkingAdjuster
public BreakIteratorShrinkingAdjuster()
-
BreakIteratorShrinkingAdjuster
public BreakIteratorShrinkingAdjuster(BreakIterator bi)
-
-
Method Detail
-
currentValue
public void currentValue(CharSequence value)
- Specified by:
currentValue
in interfacePassageAdjuster
-
adjust
public OffsetRange adjust(Passage passage)
- Specified by:
adjust
in interfacePassageAdjuster
-
-