@FunctionalInterface public interface FieldLocationPredicate extends Predicate<FieldLocation>
FieldLocation instances.
Provides factory methods for common field location matching scenarios such as:
FieldLocation| Modifier and Type | Method and Description |
|---|---|
static FieldLocationPredicate |
all()
Returns a predicate that matches all field locations.
|
static FieldLocationPredicate |
evenFieldIndex()
Returns a predicate that matches field locations with even field indexes (columns).
|
static FieldLocationPredicate |
evenRowIndex()
Returns a predicate that matches field locations with even row indexes.
|
static FieldLocationPredicate |
fieldEquals(Object value)
Returns a predicate that matches field locations where the field value equals the given value.
|
static FieldLocationPredicate |
fieldEquals(String fieldName,
Object value)
Returns a predicate that matches field locations where the specified field in the record equals the given value.
|
static FieldLocationPredicate |
fieldIndexes(int... fieldIndexes)
Returns a predicate that matches field locations where the field index is one of the specified indexes.
|
static FieldLocationPredicate |
fieldNames(String... fieldNames)
Returns a predicate that matches field locations where the field name is one of the specified names.
|
static FieldLocationPredicate |
fieldTypeEquals(FieldType fieldType)
Returns a predicate that matches field locations where the field type equals the specified field type.
|
static FieldLocationPredicate |
negativeNumber()
Returns a predicate that matches field locations where the field value is a negative number.
|
static FieldLocationPredicate |
nullToAll(FieldLocationPredicate predicate)
Returns the given predicate if not null, otherwise returns a predicate that matches all locations.
|
static FieldLocationPredicate |
oddFieldIndex()
Returns a predicate that matches field locations with odd field indexes (columns).
|
static FieldLocationPredicate |
oddRowIndex()
Returns a predicate that matches field locations with odd row indexes.
|
static FieldLocationPredicate nullToAll(FieldLocationPredicate predicate)
predicate - the predicate to check, may be nullall()static FieldLocationPredicate all()
static FieldLocationPredicate oddRowIndex()
static FieldLocationPredicate evenRowIndex()
static FieldLocationPredicate oddFieldIndex()
static FieldLocationPredicate evenFieldIndex()
static FieldLocationPredicate fieldNames(String... fieldNames)
fieldNames - the field names to matchstatic FieldLocationPredicate fieldIndexes(int... fieldIndexes)
fieldIndexes - the field indexes to matchstatic FieldLocationPredicate negativeNumber()
static FieldLocationPredicate fieldEquals(String fieldName, Object value)
fieldName - the name of the field to checkvalue - the value to matchstatic FieldLocationPredicate fieldEquals(Object value)
value - the value to matchstatic FieldLocationPredicate fieldTypeEquals(FieldType fieldType)
fieldType - the field type to matchCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.