public class

Feature

extends Object
java.lang.Object
   ↳ com.carto.geometry.Feature
Known Direct Subclasses

Class Overview

A feature consisting of geometry and properties.

Summary

Public Constructors
Feature(Geometry geometry, Variant properties)
Constructs a Feature object from geometry and properties.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
Geometry getGeometry()
Returns the geometry of the feature.
Variant getProperties()
Returns the properties of the feature.
int hashCode()
Returns the hash value of this object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Feature (Geometry geometry, Variant properties)

Constructs a Feature object from geometry and properties.

Parameters
geometry The geometry of the feature.
properties The properties of the feature.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public Geometry getGeometry ()

Returns the geometry of the feature.

Returns
  • The geometry of the feature.

public Variant getProperties ()

Returns the properties of the feature.

Returns
  • The properties of the feature.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.