Class GeometryCollection
- java.lang.Object
-
- com.github.filosganga.geogson.model.GeometryCollection
-
- All Implemented Interfaces:
Geometry<Positions>,Serializable
public class GeometryCollection extends Object implements Geometry<Positions>, Serializable
Collection ofGeometryholding anIterablebeing aGeometry.GeoJson reference: @see http://geojson.org/geojson-spec.html#geometry-collection
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.filosganga.geogson.model.Geometry
Geometry.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<Geometry<?>>getGeometries()inthashCode()static GeometryCollectionof(Geometry<?>... geometries)static GeometryCollectionof(Iterable<Geometry<?>> geometries)static GeometryCollectionof(Stream<Geometry<?>> geometries)Positionspositions()Returns the Position underlying instance.intsize()Returns the size of this Geometry.StringtoString()Geometry.Typetype()Returns the Geometry type.
-
-
-
Method Detail
-
of
public static GeometryCollection of(Geometry<?>... geometries)
-
of
public static GeometryCollection of(Iterable<Geometry<?>> geometries)
-
of
public static GeometryCollection of(Stream<Geometry<?>> geometries)
-
getGeometries
public List<Geometry<?>> getGeometries()
- Returns:
- all
Geometriesof thisIterable(e.g. Collection)
-
type
public Geometry.Type type()
Description copied from interface:GeometryReturns the Geometry type.
-
positions
public Positions positions()
Description copied from interface:GeometryReturns the Position underlying instance.
-
size
public int size()
Description copied from interface:GeometryReturns the size of this Geometry. Depending of the type of this Geometry, it may have different meaning. eg: For a LineString it is the number of points, for a MultiPolygon it is the number of polygons.
-
-