T - the type of propertiespublic class Feature<T> extends Object
| Constructor and Description |
|---|
Feature() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
com.vividsolutions.jts.geom.Geometry |
getGeometry()
The geometry object of the feature.
|
T |
getProperties()
Retrieves additional properties that describe the feature.
|
String |
getType()
Retrieves the type of the feature, which should always be "Feature".
|
int |
hashCode() |
void |
setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Sets the geometry object of the feature.
|
void |
setProperties(T properties)
Sets additional properties that describe the feature.
|
void |
setType(String type)
Sets the type of the feature, which should always be "Feature".
|
String |
toString() |
public com.vividsolutions.jts.geom.Geometry getGeometry()
public String getType()
public T getProperties()
public void setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
geometry - a Geometry geometry or null if the feature is unlocatedpublic void setType(String type)
type - the type of the featurepublic void setProperties(T properties)
properties - additional properties that describe the featureprotected boolean canEqual(Object other)
Copyright © 2017–2019. All rights reserved.