Package org.geolatte.geom
Interface Complex<P extends Position,G extends Geometry<P>>
-
- All Superinterfaces:
Iterable<G>
- All Known Implementing Classes:
AbstractGeometryCollection,GeometryCollection,MultiLineString,MultiPoint,MultiPolygon,Polygon
public interface Complex<P extends Position,G extends Geometry<P>> extends Iterable<G>
Interface forGeometrys that are composed ofGeometrys.- Author:
- Karel Maesen, Geovise BVBA creation-date: 5/16/14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description G[]components()Returns the componentsClass<? extends Geometry>getComponentType()Returns theClassof which all constituentGeometrys are instances.intgetNumGeometries()Returns the number of constituentGeometrys-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getNumGeometries
int getNumGeometries()
Returns the number of constituentGeometrys- Returns:
- the number of constituent
Geometrys
-
getComponentType
Class<? extends Geometry> getComponentType()
Returns theClassof which all constituentGeometrys are instances.- Returns:
- the
Classof which all constituentGeometrys are instances.
-
components
G[] components()
Returns the components- Returns:
- an array containing all component objects
-
-