Class GeometryContainer



  • public class GeometryContainer
    extends Object
    A class that bundles a tagged geometry with information about its' source and an unique id.
    • Constructor Detail

      • GeometryContainer

        public GeometryContainer(int id,
                                 GeoObject geometry,
                                 GeometrySource source)
        Create a new Container for the denoted geometry.
        Parameters:
        id - the identifier for this container.
        geometry - the geometry contained.
        source - the source where this came from.
    • Method Detail

      • getId

        public int getId()
        Returns:
        the identifier.
      • getGeometry

        public GeoObject getGeometry()
        Returns:
        the geometry encapsulated.
      • getSource

        public GeometrySource getSource()
        Get the source of this container (where it came from).
        Returns:
        an instance of GeometrySource
      • hashCode

        public int hashCode()
      • equals

        public boolean equals(Object o)