| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final FieldSupport | |
| private static final String | |
| public static final FieldSupport | |
| public static final FieldSupport | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private | FieldSupport(boolean
whether to read private fields or not. allowUsingPrivateFields)Build a new |
| Modifier and Type | Method and Description |
|---|---|
| public static FieldSupport | Returns: the instance dedicated to comparison of fields.Returns the instance dedicated to comparison of fields. |
| public static FieldSupport | Returns: the instance dedicated to extraction of fields.Returns the instance dedicated to extraction of fields. |
| public < the type of the extracted value. T> T | Returns: the value of the given field namethe name of the field. It may be a nested field. It is left to the clients to validate for
fieldName, Class<T> null or empty.type of field fieldClass, Object the given object target)Return the value of field from a target object. |
| public < the type of the extracted elements. T> List | Returns: anIterable containing the values of the given field name, from the elements of the given
Iterable.the name of the field. It may be a nested field. It is left to the clients to validate for
fieldName, Class<T> null or empty.the expected type of the given field. fieldClass, Iterable<?> the given target)Iterable.Returns a |
| public List | |
| public < the type of the extracted elements. T> List | Returns: anIterable containing the values of the given field name, from the elements of the given
Iterable.the name of the field. It may be a nested field. It is left to the clients to validate for
fieldName, Class<T> null or empty.the expected type of the given field. fieldClass, Object[] the given target)Iterable.Returns a |
| public boolean | |
| public boolean | |
| private boolean | |
| private String | |
| private String | |
| private <T> T | |
| public void | setAllowUsingPrivateFields(boolean
allow private fields extraction and comparison. Default allowUsingPrivateFields)true.Sets whether the use of private fields is allowed. |
| private <T> List | |
| public static FieldSupport | |
| public static FieldSupport[] |
| allowUsingPrivateFields | back to summary |
|---|---|
| private boolean allowUsingPrivateFields | |
| BOOLEAN | back to summary |
|---|---|
| private static final String BOOLEAN | |
| BYTE | back to summary |
|---|---|
| private static final String BYTE | |
| CHAR | back to summary |
|---|---|
| private static final String CHAR | |
| COMPARISON | back to summary |
|---|---|
| public static final FieldSupport COMPARISON | |
| DOUBLE | back to summary |
|---|---|
| private static final String DOUBLE | |
| EXTRACTION | back to summary |
|---|---|
| public static final FieldSupport EXTRACTION | |
| EXTRACTION_OF_PUBLIC_FIELD_ONLY | back to summary |
|---|---|
| public static final FieldSupport EXTRACTION_OF_PUBLIC_FIELD_ONLY | |
| FLOAT | back to summary |
|---|---|
| private static final String FLOAT | |
| INT | back to summary |
|---|---|
| private static final String INT | |
| LONG | back to summary |
|---|---|
| private static final String LONG | |
| SEPARATOR | back to summary |
|---|---|
| private static final String SEPARATOR | |
| SHORT | back to summary |
|---|---|
| private static final String SHORT | |
| FieldSupport | back to summary |
|---|---|
| private FieldSupport(boolean allowUsingPrivateFields) Build a new
| |
| comparison | back to summary |
|---|---|
| public static FieldSupport comparison() Returns the instance dedicated to comparison of fields.
| |
| extraction | back to summary |
|---|---|
| public static FieldSupport extraction() Returns the instance dedicated to extraction of fields.
| |
| fieldValue | back to summary |
|---|---|
| public <T> T fieldValue(String fieldName, Class<T> fieldClass, Object target) Return the value of field from a target object. The field must not be static or synthetic (since 3.19.0). Return null if field is nested and one of the nested value is null, ex :
| |
| fieldValues | back to summary |
|---|---|
| public <T> List Returns a
| |
| fieldValues | back to summary |
|---|---|
| public List | |
| fieldValues | back to summary |
|---|---|
| public <T> List Returns a
| |
| isAllowedToRead | back to summary |
|---|---|
| public boolean isAllowedToRead(Field field) | |
| isAllowedToUsePrivateFields | back to summary |
|---|---|
public boolean isAllowedToUsePrivateFields()
| |
| isNestedField | back to summary |
|---|---|
| private boolean isNestedField(String fieldName) | |
| nextFieldNameFrom | back to summary |
|---|---|
| private String nextFieldNameFrom(String fieldNameChain) | |
| popFieldNameFrom | back to summary |
|---|---|
| private String popFieldNameFrom(String fieldNameChain) | |
| readSimpleField | back to summary |
|---|---|
private <T> T readSimpleField(String fieldName, Class<T> clazz, Object target)
| |
| setAllowUsingPrivateFields | back to summary |
|---|---|
| public void setAllowUsingPrivateFields(boolean allowUsingPrivateFields) Sets whether the use of private fields is allowed. If a method tries to extract/compare private fields and is not allowed to, it will fail with an exception.
| |
| simpleFieldValues | back to summary |
|---|---|
| private <T> List | |
| valueOf | back to summary |
|---|---|
| public static FieldSupport valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FieldSupport[] values() | |