Interface IState
- All Known Implementing Classes:
DuplexMode,IntrusionStatus,LinkStatus,NeedsCleaning,PredictedFailure
public interface IState
Interface representing a generic state.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the numeric value associated with the state.Interpret the givenstatevalue based on thestateTranslationslookup.
-
Method Details
-
getNumericValue
int getNumericValue()Get the numeric value associated with the state.- Returns:
- The numeric value as int
-
interpret
static <T extends IState> Optional<T> interpret(String state, @NonNull @NonNull Map<String, T> stateTranslations, @NonNull @NonNull Class<T> type) Interpret the givenstatevalue based on thestateTranslationslookup.
-