Package com.redwood.scheduler.api.model
Interface EnumResolver
-
public interface EnumResolverInterface for resolving all EnumerationsBaseSchedulerEnumerationbased on their name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseSchedulerEnumeration<?,?>getEnumerationByTypeCode(String type, String code)Get an enumeration value based upon the type and the code.BaseSchedulerEnumeration<?,?>getEnumerationByTypeValue(String type, String value)Get an enumeration value based upon the type and the String value.
-
-
-
Method Detail
-
getEnumerationByTypeCode
BaseSchedulerEnumeration<?,?> getEnumerationByTypeCode(String type, String code)
Get an enumeration value based upon the type and the code.- Parameters:
type- the type of enumerationcode- the char/int code as a string- Returns:
- the enumeration value that matches the type and code, or
nullif it does not exist.
-
getEnumerationByTypeValue
BaseSchedulerEnumeration<?,?> getEnumerationByTypeValue(String type, String value)
Get an enumeration value based upon the type and the String value.- Parameters:
type- the type of enumerationvalue- the string value of the enumeration- Returns:
- the enumeration value that matches the type and value, or
nullif it does not exist.
-
-