Package com.graphhopper.routing.util
Class AccessFilter
java.lang.Object
com.graphhopper.routing.util.AccessFilter
- All Implemented Interfaces:
EdgeFilter
- Author:
- Peter Karich
-
Field Summary
Fields inherited from interface com.graphhopper.routing.util.EdgeFilter
ALL_EDGES -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaccept(EdgeIteratorState iter) static AccessFilterallEdges(BooleanEncodedValue accessEnc) Accepts all edges that are either forward or backward according to the given accessEnc.booleaninthashCode()static AccessFilterinEdges(BooleanEncodedValue accessEnc) static AccessFilteroutEdges(BooleanEncodedValue accessEnc) toString()
-
Method Details
-
outEdges
-
inEdges
-
allEdges
Accepts all edges that are either forward or backward according to the given accessEnc. Edges where neither one of the flags is enabled will still not be accepted. If you need to retrieve all edges regardless of their encoding useEdgeFilter.ALL_EDGESinstead. -
getAccessEnc
-
accept
- Specified by:
acceptin interfaceEdgeFilter- Returns:
- true if the current edge should be processed and false otherwise.
-
toString
-
equals
-
hashCode
public int hashCode()
-