Class StructureQueryConstraint.EmptySequence
Object
EmptySequence
- All Implemented Interfaces:
StructureQueryConstraint.Sequence
- Enclosing interface:
- StructureQueryConstraint
public static class StructureQueryConstraint.EmptySequence
extends Object
implements StructureQueryConstraint.Sequence
A default implementation of an empty sequence.
-
Field Summary
Fields inherited from interface StructureQueryConstraint.Sequence
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvance(StructureQueryConstraint.Acceptor acceptor) Attempts to advance in this sequence by 0, 1 or more positions (i.e., attempts to find the next 0, 1 or more matching indices).
-
Constructor Details
-
EmptySequence
public EmptySequence()
-
-
Method Details
-
advance
Description copied from interface:StructureQueryConstraint.SequenceAttempts to advance in this sequence by 0, 1 or more positions (i.e., attempts to find the next 0, 1 or more matching indices). Each position should be passed toacceptorthrough calls toacceptor.accept(index)oracceptor.accept(indices). Return value indicates whether this sequence is capable of producing values:falseindicates the end of this sequence.- Specified by:
advancein interfaceStructureQueryConstraint.Sequence- Parameters:
acceptor- accepts members of this sequence- Returns:
- false iff this sequence does not have any more values
-