Package org.savantbuild.util
Class Graph.EdgeFilter.IdentityEdgeFilter<T,U>
java.lang.Object
org.savantbuild.util.Graph.EdgeFilter.IdentityEdgeFilter<T,U>
- All Implemented Interfaces:
Graph.EdgeFilter<T,U>
- Enclosing interface:
- Graph.EdgeFilter<T,
U>
public static class Graph.EdgeFilter.IdentityEdgeFilter<T,U>
extends Object
implements Graph.EdgeFilter<T,U>
An edge filter that always returns true.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.savantbuild.util.Graph.EdgeFilter
Graph.EdgeFilter.IdentityEdgeFilter<T,U>, Graph.EdgeFilter.SingleTraversalEdgeFilter<T, U> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfilter(Graph.Edge<T, U> edge, Graph.Edge<T, U> entryPoint) Tests the edge.
-
Constructor Details
-
IdentityEdgeFilter
public IdentityEdgeFilter()
-
-
Method Details
-
filter
Description copied from interface:Graph.EdgeFilterTests the edge.- Specified by:
filterin interfaceGraph.EdgeFilter<T,U> - Parameters:
edge- The edge.entryPoint- The entry point to the current node.- Returns:
- True if the edge should be kept, false if it should be ignored.
-