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 ofKmlMultiGeometryandGeoJsonMultiLineString,GeoJsonMultiPointandGeoJsonMultiPolygon
-
-
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.StringgetGeometryType()Gets the type of geometryvoidsetGeometryType(java.lang.String type)Set the type of geometryjava.lang.StringtoString()
-
-
-
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:
getGeometryTypein interfaceGeometry- Returns:
- type of geometry
-
getGeometryObject
public java.util.List<Geometry> getGeometryObject()
Gets the stored geometry object- Specified by:
getGeometryObjectin 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:
toStringin classjava.lang.Object
-
-