public final class FieldPredicates extends Object
FieldPredicates.| Modifier and Type | Method and Description |
|---|---|
static FieldPredicate |
alwaysFalse()
Return a
FieldPredicate that matches nothing. |
static FieldPredicate |
alwaysTrue()
Return a
FieldPredicate that matches everything. |
static FieldPredicate |
and(FieldPredicate first,
FieldPredicate... more)
Return a
FieldPredicate that returns true if all of the supplied FieldPredicates return true. |
static FieldPredicate |
matchIndex(int index,
String token)
Return a
FieldPredicate that returns true if the field at the supplied offset FieldPredicate
equals the supplied token (or if the list doesn't contain that many items). |
static FieldPredicate |
not(FieldPredicate negatee)
Return a
FieldPredicate that inverts the matching of the supplied FieldPredicate. |
static FieldPredicate |
or(FieldPredicate first,
FieldPredicate... more)
Return a
FieldPredicate that returns true if at least one of the supplied FieldPredicates return
true. |
@Nonnull public static FieldPredicate alwaysTrue()
FieldPredicate that matches everything.@Nonnull public static FieldPredicate alwaysFalse()
FieldPredicate that matches nothing.@Nonnull public static FieldPredicate and(@Nonnull FieldPredicate first, @Nonnull FieldPredicate... more)
FieldPredicate that returns true if all of the supplied FieldPredicates return true.public static FieldPredicate or(@Nonnull FieldPredicate first, @Nonnull FieldPredicate... more)
FieldPredicate that returns true if at least one of the supplied FieldPredicates return
true.public static FieldPredicate not(@Nonnull FieldPredicate negatee)
FieldPredicate that inverts the matching of the supplied FieldPredicate.public static FieldPredicate matchIndex(int index, @Nonnull String token)
FieldPredicate that returns true if the field at the supplied offset FieldPredicate
equals the supplied token (or if the list doesn't contain that many items).Copyright © 2020. All rights reserved.