Package org.bremersee.geojson
Class AbstractGeoJsonFeatureCollection<F extends AbstractGeoJsonFeature>
- java.lang.Object
-
- org.bremersee.common.model.UnknownAware
-
- org.bremersee.geojson.AbstractGeoJsonFeatureCollection<F>
-
- Type Parameters:
F- the feature type parameter
- Direct Known Subclasses:
GeoJsonFeatureCollection
public abstract class AbstractGeoJsonFeatureCollection<F extends AbstractGeoJsonFeature> extends org.bremersee.common.model.UnknownAwareA GeoJSON object with the typeFeatureCollectionis a feature collection object (see rfc7946 section 3.3).- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractGeoJsonFeatureCollection()Instantiates a new abstract geo json feature collection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)double[]getBbox()Return the bounding box of the GeoJSON object ornullif there is no such object (see Bounding Box).List<F>getFeatures()Return the features of this collection.inthashCode()voidsetBbox(double[] bbox)Set the bounding box of the GeoJSON object.voidsetFeatures(List<F> features)Set the faetures of this collection.StringtoString()
-
-
-
Method Detail
-
getFeatures
public List<F> getFeatures()
Return the features of this collection.- Returns:
- the features of this collection
-
setFeatures
public void setFeatures(List<F> features)
Set the faetures of this collection.- Parameters:
features- the feature
-
getBbox
public double[] getBbox()
Return the bounding box of the GeoJSON object ornullif there is no such object (see Bounding Box).- Returns:
- the bounding box
-
setBbox
public void setBbox(double[] bbox)
Set the bounding box of the GeoJSON object.- Parameters:
bbox- the bounding box to set
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classorg.bremersee.common.model.UnknownAware
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.bremersee.common.model.UnknownAware
-
toString
public String toString()
- Overrides:
toStringin classorg.bremersee.common.model.UnknownAware
-
-