Package com.massifmaps.routing
Class RouteMatchingEdge
java.lang.Object
com.massifmaps.routing.RouteMatchingEdge
A class that defines a route matching result edge.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new RouteMatchingEdge instance with no attributes.RouteMatchingEdge(StringVariantMap attributes) Constructs a new RouteMatchingEdge from an attributes map. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsAttribute(String name) Returns true if edge contains the specified attribute.booleanChecks if this object is equal to the specified object.getAttribute(String name) Returns the value of the specified attribute.inthashCode()Returns the hash value of this object.toString()Creates a string representation of this object, useful for logging.
-
Constructor Details
-
RouteMatchingEdge
public RouteMatchingEdge()Constructs a new RouteMatchingEdge instance with no attributes. -
RouteMatchingEdge
Constructs a new RouteMatchingEdge from an attributes map.- Parameters:
attributes- The attributes map.
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
containsAttribute
Returns true if edge contains the specified attribute.- Parameters:
name- The name of the attribute to check.- Returns:
- True if the specified attribute exists in the edge.
-
getAttribute
Returns the value of the specified attribute.- Parameters:
name- The name of the attribute to return.- Returns:
- The attribute value, if attribute exists. Null variant is returned otherwise.
-
toString
Creates a string representation of this object, useful for logging.
-