| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Function |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final U | from(T
The database object. t)Implements org. |
| public T | to(U
The user object. u)Implements org. Convert and write a user object to a database object. |
| public String | toString()
Overrides org. |
| lookup | back to summary |
|---|---|
| private final Map<T, U> lookup | |
| to | back to summary |
|---|---|
| private final Function<? super U, ? extends T> to | |
| EnumConverter | back to summary |
|---|---|
| public EnumConverter(Class<T> fromType, Class<U> toType) | |
| EnumConverter | back to summary |
|---|---|
| public EnumConverter(Class<T> fromType, Class<U> toType, Function<? super U, ? extends T> to) | |
| from | back to summary |
|---|---|
| public final U from(T t) Implements org. Doc from org. Read and convert a database object to a user object.
| |
| to | back to summary |
|---|---|
| public T to(U u) Implements org. Doc from org. Subclasses may override this method to provide a custom reverse mapping implementation Convert and write a user object to a database object.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |