Class Element

  • Direct Known Subclasses:
    Node, Relation, Way

    public abstract class Element
    extends Entity
    An abstract class used as a basis to model the physical world.
    • Field Detail

      • id

        protected final long id
      • info

        protected final Info info
      • geometry

        protected org.locationtech.jts.geom.Geometry geometry
    • Constructor Detail

      • Element

        public Element​(long id,
                       Info info,
                       Map<String,​String> tags,
                       org.locationtech.jts.geom.Geometry geometry)
    • Method Detail

      • getId

        public long getId()
      • getInfo

        public Info getInfo()
      • getGeometry

        public org.locationtech.jts.geom.Geometry getGeometry()
      • setGeometry

        public void setGeometry​(org.locationtech.jts.geom.Geometry geometry)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object