HERE Android SDK Developer's Guide

Link

The class Link is a member of com.here.android.mpa.electronic_horizon .

Class Summary

public final class Link

extends java.lang.Object

Represents a link for electronic horizon.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in Link
Nested Classes

public static final enumeration Link.Direction

Defines the direction of movement.

Constructor Summary

Table 2. Constructors in Link
Constructors

Link (long id, Direction direction, int startOffsetCentimeters, int endOffsetCentimeters)

Constructor

Method Summary

Table 3. Methods in Link
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public Direction getDirection ()

public int getEndOffsetCentimeters ()

public long getId ()

public int getStartOffsetCentimeters ()

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents a link for electronic horizon.

Constructor Details

Constructor

Parameters:

  • id
  • direction
  • startOffsetCentimeters
  • endOffsetCentimeters

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public Direction getDirection ()

Returns:

The direction of movement.

public int getEndOffsetCentimeters ()

Returns:

The distance from beginning of path to end of link in centimeters.

public long getId ()

Returns:

The identifier of the link.

public int getStartOffsetCentimeters ()

Returns:

The distance in centimeters from the logical beginning of the path.

public int hashCode ()

For documentation, see java.lang.Object