Package tech.v3.datatype
Class Pred
- java.lang.Object
-
- tech.v3.datatype.Pred
-
public class Pred extends java.lang.Object
Short form common scalar predicates for use in filtering operations. tech.v3.datatype.UnaryPredicate derives from clojure.lang.IFn, java.util.DoublePredicate, and defines a set of primitive comparison interfaces allowing efficient non-boxing comparison operations. On the other hand some of the primitives, such as 'eq', are stronger in that they show correct behavior w/r/t Double/NaN. For ordering functions the argument is passed on the lefthand side so Pred.lt(5.0) creates the function `arg < 5.0` where arg is the argument to the function.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static tech.v3.datatype.UnaryPredicate
eq(java.lang.Object constant)
`constant == arg`.static tech.v3.datatype.UnaryPredicate
gt(java.lang.Object constant)
`arg > constant`static tech.v3.datatype.UnaryPredicate
gte(java.lang.Object constant)
`arg >= constant`static tech.v3.datatype.UnaryPredicate
lt(java.lang.Object constant)
`arg < constant`static tech.v3.datatype.UnaryPredicate
lte(java.lang.Object constant)
`arg <= constant`static tech.v3.datatype.UnaryPredicate
nil(java.lang.Object constant)
`constant == null`static tech.v3.datatype.UnaryPredicate
notEq(java.lang.Object constant)
`constant != arg`.
-
-
-
Method Detail
-
eq
public static tech.v3.datatype.UnaryPredicate eq(java.lang.Object constant)
`constant == arg`. Works for Double/NaN.
-
notEq
public static tech.v3.datatype.UnaryPredicate notEq(java.lang.Object constant)
`constant != arg`. Works for Double/NaN.
-
gt
public static tech.v3.datatype.UnaryPredicate gt(java.lang.Object constant)
`arg > constant`
-
lt
public static tech.v3.datatype.UnaryPredicate lt(java.lang.Object constant)
`arg < constant`
-
gte
public static tech.v3.datatype.UnaryPredicate gte(java.lang.Object constant)
`arg >= constant`
-
lte
public static tech.v3.datatype.UnaryPredicate lte(java.lang.Object constant)
`arg <= constant`
-
nil
public static tech.v3.datatype.UnaryPredicate nil(java.lang.Object constant)
`constant == null`
-
-