Package com.google.maps.android.data
Class MultiGeometry
- java.lang.Object
-
- com.google.maps.android.data.MultiGeometry
-
- All Implemented Interfaces:
Geometry
- Direct Known Subclasses:
GeoJsonGeometryCollection
,GeoJsonMultiLineString
,GeoJsonMultiPoint
,GeoJsonMultiPolygon
,KmlMultiGeometry
public class MultiGeometry extends java.lang.Object implements Geometry
An abstraction that shares the common properties ofKmlMultiGeometry
andGeoJsonMultiLineString
,GeoJsonMultiPoint
andGeoJsonMultiPolygon
-
-
Constructor Summary
Constructors Constructor Description MultiGeometry(java.util.List<? extends Geometry> geometries)
Creates a new MultiGeometry object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Geometry>
getGeometryObject()
Gets the stored geometry objectjava.lang.String
getGeometryType()
Gets the type of geometryvoid
setGeometryType(java.lang.String type)
Set the type of geometryjava.lang.String
toString()
-
-
-
Constructor Detail
-
MultiGeometry
public MultiGeometry(java.util.List<? extends Geometry> geometries)
Creates a new MultiGeometry object- Parameters:
geometries
- contains list of Polygons, Linestrings or Points
-
-
Method Detail
-
getGeometryType
public java.lang.String getGeometryType()
Gets the type of geometry- Specified by:
getGeometryType
in interfaceGeometry
- Returns:
- type of geometry
-
getGeometryObject
public java.util.List<Geometry> getGeometryObject()
Gets the stored geometry object- Specified by:
getGeometryObject
in interfaceGeometry
- Returns:
- geometry object
-
setGeometryType
public void setGeometryType(java.lang.String type)
Set the type of geometry- Parameters:
type
- String describing type of geometry
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-