Package org.codice.alliance.libs.klv
Class NonEmptyGeometryOperator
java.lang.Object
org.codice.alliance.libs.klv.NonEmptyGeometryOperator
- All Implemented Interfaces:
BiFunction<org.locationtech.jts.geom.Geometry,,GeometryOperator.Context, org.locationtech.jts.geom.Geometry> GeometryOperator
If the geometry is empty, then return
null. Otherwise, return the geometry.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.codice.alliance.libs.klv.GeometryOperator
GeometryOperator.Context -
Field Summary
Fields inherited from interface org.codice.alliance.libs.klv.GeometryOperator
IDENTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Geometryapply(org.locationtech.jts.geom.Geometry geometry, GeometryOperator.Context context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
NonEmptyGeometryOperator
public NonEmptyGeometryOperator()
-
-
Method Details
-
apply
public org.locationtech.jts.geom.Geometry apply(org.locationtech.jts.geom.Geometry geometry, GeometryOperator.Context context) - Specified by:
applyin interfaceBiFunction<org.locationtech.jts.geom.Geometry,GeometryOperator.Context, org.locationtech.jts.geom.Geometry>
-