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 boolean
accept
(EdgeIteratorState iter) static AccessFilter
allEdges
(BooleanEncodedValue accessEnc) Accepts all edges that are either forward or backward according to the given accessEnc.boolean
int
hashCode()
static AccessFilter
inEdges
(BooleanEncodedValue accessEnc) static AccessFilter
outEdges
(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_EDGES
instead. -
getAccessEnc
-
accept
- Specified by:
accept
in interfaceEdgeFilter
- Returns:
- true if the current edge should be processed and false otherwise.
-
toString
-
equals
-
hashCode
public int hashCode()
-