Located in compilation unit of org.
| Modifier and Type | Field and Description |
|---|---|
| private final SegmentOps | |
| private final BiFunction | |
| private final SegmentOps |
| Access | Constructor and Description |
|---|---|
| pack-priv | EitherSegmentOps(SegmentOps<L, S> lOps, SegmentOps<R, S> rOps, BiFunction<S, S, Optional<S>> mergeStyle)
|
| Modifier and Type | Method and Description |
|---|---|
| public char | |
| public Either | createEmptySeg()
Implements org. Creates an empty segment. |
| public String | |
| public Optional | joinSeg(Either<L, R> left, Either<L, R> right)
Implements org. Joins two consecutive segments together into one or |
| public Optional | joinStyle(S currentStyle, S nextStyle)
Overrides default org. Joins two consecutive styles together into one or |
| public int | |
| public Either | subSequence(Either<L, R> seg, int start, int end)
Implements org.
|
| public Either | subSequence(Either<L, R> seg, int start)
Implements org.
|
| lOps | back to summary |
|---|---|
| private final SegmentOps<L, S> lOps | |
| mergeStyle | back to summary |
|---|---|
| private final BiFunction<S, S, Optional<S>> mergeStyle | |
| rOps | back to summary |
|---|---|
| private final SegmentOps<R, S> rOps | |
| EitherSegmentOps | back to summary |
|---|---|
| pack-priv EitherSegmentOps(SegmentOps<L, S> lOps, SegmentOps<R, S> rOps, BiFunction<S, S, Optional<S>> mergeStyle) | |
| charAt | back to summary |
|---|---|
| public char charAt(Either<L, R> seg, int index) Implements org.
| |
| createEmptySeg | back to summary |
|---|---|
| public Either Implements org. Doc from org. Creates an empty segment. This method should return the same object for better performance and memory usage. | |
| getText | back to summary |
|---|---|
| public String getText(Either<L, R> seg) Implements org.
| |
| joinSeg | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Joins two consecutive segments together into one or
| |
| joinStyle | back to summary |
|---|---|
| public Optional Overrides default org. Doc from org. Joins two consecutive styles together into one or
| |
| length | back to summary |
|---|---|
| public int length(Either<L, R> seg) Implements org.
| |
| subSequence | back to summary |
|---|---|
| public Either Implements org.
| |
| subSequence | back to summary |
|---|---|
| public Either Implements org.
| |