Package org.goplanit.utils.enums
Interface EnumValue<T>
-
- Type Parameters:
T
- type of value captured by enum
- All Known Implementing Classes:
RouteType
,StopLocationType
public interface EnumValue<T>
Allow enum to implement this interface so it is accessible toEnumOf
which in turn uses it to create a factory method allowing one to construct the enum based on this internal value
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getValue()
Collect internal value of the enum that implements this interface
-
-
-
Method Detail
-
getValue
T getValue()
Collect internal value of the enum that implements this interface- Returns:
- value
-
-