public class IgnoreField extends Object implements FieldFilter
Constructor and Description |
---|
IgnoreField(Class<?> clazz,
String fieldName)
Initialize an instance that ignores the a field with given
fieldName , which is declared on the
given
clazz . |
IgnoreField(Field field)
Initialize an instance that ignores the given
field |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Field field)
Indicates whether the given
field should be accepted for processing, or skipped/ignored. |
public IgnoreField(Field field)
field
field
- The field to ignorepublic IgnoreField(Class<?> clazz, String fieldName)
fieldName
, which is declared on the
given
clazz
.clazz
- The type that declares the fieldfieldName
- The name of the fieldFixtureExecutionException
- when the given fieldName is not declared on given clazz.public boolean accept(Field field)
FieldFilter
field
should be accepted for processing, or skipped/ignored.accept
in interface FieldFilter
field
- The field to evaluatetrue
when the field should be processed, otherwise false
Copyright © 2010–2020. All rights reserved.