public class ComparisonPredicates extends Object
Constructor and Description |
---|
ComparisonPredicates() |
Modifier and Type | Method and Description |
---|---|
static Predicate<org.apache.sling.api.resource.Resource> |
contains(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Right and Left values are converted to String arrays
|
static Predicate<org.apache.sling.api.resource.Resource> |
containsAny(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Right and Left values are converted to String arrays
|
static Predicate<org.apache.sling.api.resource.Resource> |
gt(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Values are converted to a Number, and then additionally converted to a common
type as the basis of comparison
|
static Predicate<org.apache.sling.api.resource.Resource> |
gte(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Values are converted to a Number, and then additionally converted to a common
type as the basis of comparison
|
static Predicate<org.apache.sling.api.resource.Resource> |
in(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Right and Left values are converted to String arrays
|
static Predicate<org.apache.sling.api.resource.Resource> |
is(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Values are converted to Strings.
|
static Predicate<org.apache.sling.api.resource.Resource> |
isNot(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Values are converted to Strings.
|
static Predicate<org.apache.sling.api.resource.Resource> |
like(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Values are converted to Strings.
|
static Predicate<org.apache.sling.api.resource.Resource> |
lt(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Values are converted to a Number, and then additionally converted to a common
type as the basis of comparison
|
static Predicate<org.apache.sling.api.resource.Resource> |
lte(Function<org.apache.sling.api.resource.Resource,Object> lhs,
Function<org.apache.sling.api.resource.Resource,Object> rhs)
Values are converted to a Number, and then additionally converted to a common
type as the basis of comparison
|
public static Predicate<org.apache.sling.api.resource.Resource> is(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> isNot(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> like(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> gt(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> gte(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> lt(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> lte(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> contains(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonpublic static Predicate<org.apache.sling.api.resource.Resource> containsAny(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides comparison valuerhs
- Function which provides comparison valuepublic static Predicate<org.apache.sling.api.resource.Resource> in(Function<org.apache.sling.api.resource.Resource,Object> lhs, Function<org.apache.sling.api.resource.Resource,Object> rhs)
lhs
- Function which provides value for comparisonrhs
- Function which provides value for comparisonCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.