The logic in opencsv is always:
java.util.Optional , wrap or unwrap as necessary. Empty
java.util.Optional s lead to null return values, and
null values lead to empty java.util.Optional s.| Modifier and Type | Field and Description |
|---|---|
| private final AccessorInvoker | accessor
A functional interface to read the field. |
| private final AssignmentInvoker | assignment
A functional interface to write the field. |
| private final Field | field
The field being accessed. |
| Access | Constructor and Description |
|---|---|
| public | FieldAccess(Field
The field to be accessed. field)Constructs this instance by determining what mode of access will work for this field. |
| Modifier and Type | Method and Description |
|---|---|
| private AccessorInvoker | |
| private AssignmentInvoker | |
| public boolean | equals(Object obj)
Overrides java. Determines equality between this object and another. |
| public T | |
| public int | |
| public void | |
| public String |
| accessor | back to summary |
|---|---|
| private final AccessorInvoker<Object, T> accessor A functional interface to read the field. | |
| assignment | back to summary |
|---|---|
| private final AssignmentInvoker<Object, T> assignment A functional interface to write the field. | |
| field | back to summary |
|---|---|
| private final Field field The field being accessed. | |
| FieldAccess | back to summary |
|---|---|
| public FieldAccess(Field field) Constructs this instance by determining what mode of access will work for this field.
| |
| determineAccessorMethod | back to summary |
|---|---|
private AccessorInvoker
| |
| determineAssignmentMethod | back to summary |
|---|---|
| private AssignmentInvoker | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Determines equality between this object and another. This override delegates equality determination to the field passed in through the constructor and does not includes any of its own state information.
| |
| getField | back to summary |
|---|---|
| public T getField(Object bean) throws IllegalAccessException, InvocationTargetException Returns the value of the field in the given bean.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Creates a hash code for this object. This override delegates hash code creation to the field passed in through the constructor and does not includes any of its own state information.
| |
| setField | back to summary |
|---|---|
| public void setField(Object bean, T value) throws IllegalAccessException, InvocationTargetException Sets the value of the field in the given bean.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object. This override delegates the string representation to the field passed in through the constructor and does not includes any of its own state information.
| |