Class SequencePatternNextMediator<E>
java.lang.Object
ch.nolix.base.container.sequencesearch.SequencePatternNextMediator<E>
- Type Parameters:
E- is the type of the elements of the sequences of theSequencePatternof aSequencePatternNextMediator.
- All Implemented Interfaces:
ISequencePatternNextMediator<E>
public final class SequencePatternNextMediator<E>
extends Object
implements ISequencePatternNextMediator<E>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SequencePatternNextMediator<T> forSequencePatternAndCount(ISequencePattern<T> sequencePattern, int count) withCondition(Predicate<E> condition)
-
Method Details
-
forSequencePatternAndCount
public static <T> SequencePatternNextMediator<T> forSequencePatternAndCount(ISequencePattern<T> sequencePattern, int count) - Type Parameters:
T- is the type of the elements of the sequences of theISequencePatternof theISequencePatternNextMediator.- Parameters:
sequencePattern-count-- Returns:
- a new
SequencePatternNextMediatorfor the given sequencePattern and count. - Throws:
RuntimeException- if the sequencePattern is null.RuntimeException- if the given count is negative.
-
withBlank
- Specified by:
withBlankin interfaceISequencePatternNextMediator<E>- Returns:
- a new
ISequencePatternfrom theISequencePatternof the currentISequencePatternNextMediatorwith a blank condition for the next elements of the sequences of theISequencePattern.
-
withCondition
- Specified by:
withConditionin interfaceISequencePatternNextMediator<E>- Parameters:
condition-- Returns:
- a new
ISequencePatternfrom theISequencePatternof the currentISequencePatternNextMediatorwith the given condition for the next elements of the sequences of theISequencePattern.
-