Schnittstelle ISequencePattern<E>
- Typparameter:
E
- is the type of the elements of the sequences aISequencePattern
selects.
- Alle bekannten Implementierungsklassen:
SequencePattern
public interface ISequencePattern<E>
A
ISequencePattern
is a pattern for sequences.
-The sequences of a ISequencePattern
must have a defined length.
-The elements of the sequences of a ISequencePattern
must fulfill the
element conditions of the ISequencePattern
.
-The sequences of a ISequencePattern
must fulfill all sequence
conditions of the ISequencePattern
.- Version:
- 2023-02-13
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungforNext
(int count) IContainer
<? extends IContainer<E>> getMatchingSequencesFrom
(IContainer<E> container) withConditionForNext
(Predicate<E> condition) withConditionsForNexts
(IContainer<Predicate<E>> conditions) withSequenceCondition
(Predicate<IContainer<E>> sequenceCondition) Adds the given sequenceCondition to the currentISequencePattern
.
-
Methodendetails
-
withBlankForNext
ISequencePattern<E> withBlankForNext()- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with a blank condition for the next element of the sequences of theISequencePattern
.
-
withConditionForNext
- Parameter:
condition
-- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with the given condition for the next element of the sequences of theISequencePattern
. - Löst aus:
RuntimeException
- if the given condition is null.
-
withConditionsForNexts
- Parameter:
conditions
-- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with the given conditions for the next elements of the sequences of theISequencePattern
. - Löst aus:
RuntimeException
- if the given condition is null.RuntimeException
- if one of the given conditions is null.
-
withSequenceCondition
Adds the given sequenceCondition to the currentISequencePattern
.- Parameter:
sequenceCondition
-- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with the given sequenceCondition for the sequences theISequencePattern
. - Löst aus:
RuntimeException
- if the given sequenceCondition is null.
-
forNext
- Parameter:
count
-- Gibt zurück:
- a new
ISequencePatternNextMediator
for the currentISequencePattern
and the given count. - Löst aus:
RuntimeException
- if the given count is negative.
-
getMatchingSequencesFrom
- Parameter:
container
-- Gibt zurück:
- all sequences from the given container that match the current
ISequencePattern
.
-