org.geolatte.common.expressions.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-common Show documentation
Show all versions of geolatte-common Show documentation
This GeoLatte-common library contains the transformer framework and other common classes used by other
GeoLatte modules.
Contains expression classes that allow to build object filters based an object's properties.
Examples
Basic Comparisons
MyNumber @gt; 42 :
Expressions.isGreaterThan(Expressions.numberProperty("MyNumber"), Expressions.constant(42));
or more fluently
Expressions.numberProperty("MyNumber").isGreaterThan(Expressions.constant(42));
Boolean Operators
MyProperty < 42 AND YourProperty > 72
Expressions.and(Expressions.isLessThan(Expressions.numberProperty("MyProperty"), Expressions.constant(42)), Expressions.isGreaterThan(Expressions.numberProperty("YourProperty"), Expressions.constant(72)));
or more fluently
Expressions.numberProperty("MyProperty").isLessThan(Expressions.constant(42)).and(Expressions.numberProperty("YourProperty").isGreaterThan(Expressions.constant(72));