All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geolatte.common.expressions.package.html Maven / Gradle / Ivy

Go to download

This GeoLatte-common library contains the transformer framework and other common classes used by other GeoLatte modules.

There is a newer version: 0.8
Show newest version









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));
    




© 2015 - 2024 Weber Informatics LLC | Privacy Policy