Class RelationMember

java.lang.Object
rgu.transport.geospatial.osm.RelationMember

public final class RelationMember extends Object
Represents a relation member in an OSM relation.
Author:
Lee A. Christie
  • Method Details

    • of

      public static RelationMember of(long reference, String role)
      Creates a new relation member.
      Parameters:
      reference - the reference attribute
      role - the role attribute, not null
      Returns:
      the new relation member
    • reference

      public long reference()
      Returns the reference attribute.
      Returns:
      the reference attribute
    • role

      public String role()
      Returns the role attribute.
      Returns:
      the role attribute, not null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object