Package de.xima.fc.workflow
Class FlowGraphFilters.EdgeTypeMatchesBuilder
- java.lang.Object
-
- de.xima.fc.workflow.FlowGraphFilters.EdgeTypeMatchesBuilder
-
- Enclosing class:
- FlowGraphFilters
public static final class FlowGraphFilters.EdgeTypeMatchesBuilder extends Object
Builder for afilterthat applies constraints to theedge typesofflow graph edges. Initially, no constraints are present in the builder.Buildingan empty builder is equivalent toFlowGraphFilters.matchAll().- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
-
-
-
Method Detail
-
anyEdge
public FlowGraphFilters.EdgeTypeMatchesBuilder anyEdge(BitFlagSetPredicate anyEdge)
Sets the filter to apply to edge types of all edges, seeIFlowGraphFilterInstance#allowsEdge. When a filter was already set, it is replaced with the given one.- Parameters:
anyEdge- Predicate to apply to the edge types of all edges.- Returns:
- This builder instance for chaining method calls.
- See Also:
, for the bit flags of the edge types.
-
anyEdge
public FlowGraphFilters.EdgeTypeMatchesBuilder anyEdge(Consumer<BitFlagSetPredicate.Builder> anyEdge)
Sets the filter to apply to edge types of all edges, seeIFlowGraphFilterInstance#allowsEdge. When a filter was already set, it is replaced with the given one.- Parameters:
anyEdge- Consumer that takes a builder to configure a predicate to apply to the edge types of all edges.- Returns:
- This builder instance for chaining method calls.
- See Also:
, for the bit flags of the edge types.
-
build
public FlowGraphFilter.Generic build()
- Returns:
- A
filterthat matches the currently configured edge types.
-
finalEdge
public FlowGraphFilters.EdgeTypeMatchesBuilder finalEdge(BitFlagSetPredicate finalEdge)
Sets the filter to apply to edge types of final edges, seeIFlowGraphFilterInstance#allowsFinalEdge. When a filter was already set, it is replaced with the given one.- Parameters:
finalEdge- Predicate to apply to the edge types of final edges.- Returns:
- This builder instance for chaining method calls.
- See Also:
, for the bit flags of the edge types.
-
finalEdge
public FlowGraphFilters.EdgeTypeMatchesBuilder finalEdge(Consumer<BitFlagSetPredicate.Builder> finalEdge)
Sets the filter to apply to edge types of final edges, seeIFlowGraphFilterInstance#allowsFinalEdge. When a filter was already set, it is replaced with the given one.- Parameters:
finalEdge- Consumer that takes a builder to configure a predicate to apply to the edge types of final edges.- Returns:
- This builder instance for chaining method calls.
- See Also:
, for the bit flags of the edge types.
-
initialEdge
public FlowGraphFilters.EdgeTypeMatchesBuilder initialEdge(BitFlagSetPredicate initialEdge)
Sets the filter to apply to edge types of initial edges, seeIFlowGraphFilterInstance#allowsInitialEdge. When a filter was already set, it is replaced with the given one.- Parameters:
initialEdge- Predicate to apply to the edge types of initial edges.- Returns:
- This builder instance for chaining method calls.
- See Also:
, for the bit flags of the edge types.
-
initialEdge
public FlowGraphFilters.EdgeTypeMatchesBuilder initialEdge(Consumer<BitFlagSetPredicate.Builder> initialEdge)
Sets the filter to apply to edge types of initial edges, seeIFlowGraphFilterInstance#allowsInitialEdge. When a filter was already set, it is replaced with the given one.- Parameters:
initialEdge- Consumer that takes a builder to configure a predicate to apply to the edge types of initial edges.- Returns:
- This builder instance for chaining method calls.
- See Also:
, for the bit flags of the edge types.
-
-