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 a pattern for sequences. -The sequences of a
SequencePattern
must have a defined length. -The elements of the
sequences of a SequencePattern
must fulfill the according element
conditions of the SequencePattern
. -The sequences of a
SequencePattern
must fulfill the sequence conditions of the
SequencePattern
.- Version:
- 2016-10-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAdds a blank condition for the next element of the sequences of the currentSequencePattern
.addConditionForNext
(Predicate<E> condition) Adds the given condition for the next element of the sequences of the currentSequencePattern
.addSequenceCondition
(Predicate<LinkedList<E>> sequenceCondition) Adds the given sequence condition to the currentSequencePattern
.forNext
(int count) IContainer
<? extends IContainer<E>> getMatchingSequencesFrom
(IContainer<E> list) int
getSize()
-
Konstruktordetails
-
SequencePattern
public SequencePattern()
-
-
Methodendetails
-
addBlankForNext
Adds a blank condition for the next element of the sequences of the currentSequencePattern
.- Gibt zurück:
- this
SequencePattern
.
-
addConditionForNext
Adds the given condition for the next element of the sequences of the currentSequencePattern
.- Parameter:
condition
-- Gibt zurück:
- the current
SequencePattern
. - Löst aus:
ArgumentIsNullException
- if the given condition is null.
-
addSequenceCondition
Adds the given sequence condition to the currentSequencePattern
. The sequence conditions must be fulfilled from the sequences of aSequencePattern
.- Parameter:
sequenceCondition
-- Gibt zurück:
- this
SequencePattern
. - Löst aus:
ArgumentIsNullException
- if the given sequence condition is null.
-
forNext
- Parameter:
count
-- Gibt zurück:
- a new
SequencePatternNextMediator
for the currentSequencePattern
with the given count. - Löst aus:
NegativeArgumentException
- if the given count is negative.
-
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
.
-