public class DepthPredicate extends java.lang.Object implements Predicate
Constructor and Description |
---|
DepthPredicate(int minDepth,
int maxDepth)
Creates a new depth filter for the given depths.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.lang.Object item)
Matches if the given depth is greater or equal the minimum depth and
less or equal the maximum depth and if the call to
matches(Item)
returns true . |
public DepthPredicate(int minDepth, int maxDepth)
minDepth
- the minimal depthmaxDepth
- the maximal depthpublic boolean evaluate(java.lang.Object item)
matches(Item)
returns true
.evaluate
in interface Predicate
item
- some objectPredicate.evaluate(java.lang.Object)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"