Class BetweenConstraint
java.lang.Object
io.fluxcapacitor.common.api.search.constraints.PathConstraint
io.fluxcapacitor.common.api.search.constraints.BetweenConstraint
- All Implemented Interfaces:
Constraint
public class BetweenConstraint extends PathConstraint
-
Field Summary
Fields inherited from interface io.fluxcapacitor.common.api.search.Constraint
noOp -
Constructor Summary
Constructors Constructor Description BetweenConstraint() -
Method Summary
Modifier and Type Method Description static BetweenConstraintatLeast(@NonNull Object min, @NonNull String path)static BetweenConstraintbelow(@NonNull Object maxExclusive, @NonNull String path)static BetweenConstraintbetween(Object min, Object maxExclusive, @NonNull String path)protected booleancheckPathBeforeEntry()protected booleanmatches(Document.Entry entry)Methods inherited from class io.fluxcapacitor.common.api.search.constraints.PathConstraint
getPath, hasPathConstraint, matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.common.api.search.Constraint
and, decompose, or
-
Constructor Details
-
BetweenConstraint
public BetweenConstraint()
-
-
Method Details
-
between
public static BetweenConstraint between(Object min, Object maxExclusive, @NonNull @NonNull String path) -
atLeast
public static BetweenConstraint atLeast(@NonNull @NonNull Object min, @NonNull @NonNull String path) -
below
public static BetweenConstraint below(@NonNull @NonNull Object maxExclusive, @NonNull @NonNull String path) -
matches
- Specified by:
matchesin classPathConstraint
-
checkPathBeforeEntry
protected boolean checkPathBeforeEntry()- Overrides:
checkPathBeforeEntryin classPathConstraint
-