Package com.aoindustries.aoserv.client
Interface DbEnum.FromDbValue<E extends Enum<?>>
- Enclosing class:
DbEnum
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionfromDbValue(String dbValue) Gets theEnumfor the given database value.
-
Method Details
-
fromDbValue
Gets theEnumfor the given database value.- Parameters:
dbValue- The database value, nevernull(FromDbValue is not resolved or called fornullvalues).- Throws:
IllegalArgumentException- when unable to map the database value to theEnum.
-
