public class

RouteMatchingEdge

extends Object
java.lang.Object
   ↳ com.carto.routing.RouteMatchingEdge

Class Overview

A class that defines a route matching result edge.

Summary

Public Constructors
RouteMatchingEdge()
Constructs a new RouteMatchingEdge instance with no attributes.
RouteMatchingEdge(StringVariantMap attributes)
Constructs a new RouteMatchingEdge from an attributes map.
Public Methods
boolean containsAttribute(String name)
Returns true if edge contains the specified attribute.
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
Variant getAttribute(String name)
Returns the value of the specified attribute.
int hashCode()
Returns the hash value of this object.
String toString()
Creates a string representation of this object, useful for logging.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RouteMatchingEdge ()

Constructs a new RouteMatchingEdge instance with no attributes.

public RouteMatchingEdge (StringVariantMap attributes)

Constructs a new RouteMatchingEdge from an attributes map.

Parameters
attributes The attributes map.

Public Methods

public boolean containsAttribute (String name)

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.

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public Variant getAttribute (String name)

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.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public String toString ()

Creates a string representation of this object, useful for logging.

Returns
  • The string representation of this object.