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) int
getSize()
boolean
matches
(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
SequencePattern
for the given elementType.
-
withBlankForNext
- Angegeben von:
withBlankForNext
in SchnittstelleISequencePattern<E>
- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with a blank condition for the next element of the sequences of theISequencePattern
.
-
withConditionForNext
- Angegeben von:
withConditionForNext
in SchnittstelleISequencePattern<E>
- Parameter:
condition
-- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with the given condition for the next element of the sequences of theISequencePattern
.
-
withConditionsForNexts
- Angegeben von:
withConditionsForNexts
in SchnittstelleISequencePattern<E>
- Parameter:
conditions
-- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with the given conditions for the next elements of the sequences of theISequencePattern
.
-
withSequenceCondition
Adds the given sequenceCondition to the currentISequencePattern
.- Angegeben von:
withSequenceCondition
in SchnittstelleISequencePattern<E>
- Parameter:
sequenceCondition
-- Gibt zurück:
- a new
ISequencePattern
from the currentISequencePattern
with the given sequenceCondition for the sequences theISequencePattern
.
-
forNext
- Angegeben von:
forNext
in SchnittstelleISequencePattern<E>
- Parameter:
count
-- Gibt zurück:
- a new
ISequencePatternNextMediator
for the currentISequencePattern
and the given count.
-
getMatchingSequencesFrom
- Angegeben von:
getMatchingSequencesFrom
in 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
SequencePattern
matches the given list.
-