public interface SegmentOptimizer extends BiFunction<CharSequence,Object[],Object[]>
| Modifier and Type | Method and Description |
|---|---|
Object[] |
apply(@NotNull CharSequence chars,
Object[] objects)
Optimize segment BASE parts surrounding TEXT contained in Object[] array.
|
static @NotNull Object[] |
insert(@NotNull Object[] parts,
int index)
Insert a null at index in given parts array
|
andThenObject[] apply(@NotNull @NotNull CharSequence chars, Object[] objects)
apply in interface BiFunction<CharSequence,Object[],Object[]>chars - base character sequenceobjects - parts to optimize
Object[0] - previous BASE Range, will be Range.NULL if no previous range
Object[1] - char sequence of TEXT to optimize
Object[2] - next BASE Range, will be Range.NULL if no next rangeCopyright © 2020. All rights reserved.