Class Way


  • public class Way
    extends java.lang.Object
    An immutable container for all data associated with a single way or area (closed way).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.mapsforge.core.model.LatLong labelPosition
      The position of the area label (may be null).
      org.mapsforge.core.model.LatLong[][] latLongs
      The geographical coordinates of the way nodes.
      byte layer
      The layer of this way + 5 (to avoid negative values).
      java.util.List<org.mapsforge.core.model.Tag> tags
      The tags of this way.
    • Constructor Summary

      Constructors 
      Constructor Description
      Way​(byte layer, java.util.List<org.mapsforge.core.model.Tag> tags, org.mapsforge.core.model.LatLong[][] latLongs, org.mapsforge.core.model.LatLong labelPosition)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • labelPosition

        public final org.mapsforge.core.model.LatLong labelPosition
        The position of the area label (may be null).
      • latLongs

        public final org.mapsforge.core.model.LatLong[][] latLongs
        The geographical coordinates of the way nodes.
      • layer

        public final byte layer
        The layer of this way + 5 (to avoid negative values).
      • tags

        public final java.util.List<org.mapsforge.core.model.Tag> tags
        The tags of this way.
    • Constructor Detail

      • Way

        public Way​(byte layer,
                   java.util.List<org.mapsforge.core.model.Tag> tags,
                   org.mapsforge.core.model.LatLong[][] latLongs,
                   org.mapsforge.core.model.LatLong labelPosition)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object