Klasse SequencePattern<E>
java.lang.Object
ch.nolix.core.container.sequencesearch.SequencePattern<E>
- Typparameter:
E- is the type of the elements of the sequences of aSequencePattern.
- Alle implementierten Schnittstellen:
ISequencePattern<E>
A
SequencePattern is not mutable.- Version:
- 2016-10-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <E2> SequencePattern<E2> forElementType(Class<E2> elementType) forNext(int count) IContainer<? extends IContainer<E>> getMatchingSequencesFrom(IContainer<E> list) intgetSize()booleanmatches(LinkedList<E> list) withConditionForNext(Predicate<E> condition) withConditionsForNexts(IContainer<Predicate<E>> conditions) withSequenceCondition(Predicate<IContainer<E>> sequenceCondition) Adds the given sequenceCondition to the currentISequencePattern.
-
Methodendetails
-
forElementType
- Typparameter:
E2-- Parameter:
elementType-- Gibt zurück:
- a new
SequencePatternfor the given elementType.
-
withBlankForNext
- Angegeben von:
withBlankForNextin SchnittstelleISequencePattern<E>- Gibt zurück:
- a new
ISequencePatternfrom the currentISequencePatternwith a blank condition for the next element of the sequences of theISequencePattern.
-
withConditionForNext
- Angegeben von:
withConditionForNextin SchnittstelleISequencePattern<E>- Parameter:
condition-- Gibt zurück:
- a new
ISequencePatternfrom the currentISequencePatternwith the given condition for the next element of the sequences of theISequencePattern.
-
withConditionsForNexts
- Angegeben von:
withConditionsForNextsin SchnittstelleISequencePattern<E>- Parameter:
conditions-- Gibt zurück:
- a new
ISequencePatternfrom the currentISequencePatternwith the given conditions for the next elements of the sequences of theISequencePattern.
-
withSequenceCondition
Adds the given sequenceCondition to the currentISequencePattern.- Angegeben von:
withSequenceConditionin SchnittstelleISequencePattern<E>- Parameter:
sequenceCondition-- Gibt zurück:
- a new
ISequencePatternfrom the currentISequencePatternwith the given sequenceCondition for the sequences theISequencePattern.
-
forNext
- Angegeben von:
forNextin SchnittstelleISequencePattern<E>- Parameter:
count-- Gibt zurück:
- a new
ISequencePatternNextMediatorfor the currentISequencePatternand the given count.
-
getMatchingSequencesFrom
- Angegeben von:
getMatchingSequencesFromin SchnittstelleISequencePattern<E>- Parameter:
list-- Gibt zurück:
- all sequences from the given container that match the current
ISequencePattern.
-
getSize
public int getSize()- Gibt zurück:
- the number of elements of the sequences of the current
SequencePattern.
-
matches
- Parameter:
list-- Gibt zurück:
- true if the current
SequencePatternmatches the given list.
-