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 to EnumOf which in turn uses it to create a factory method allowing one to construct the enum based on this internal value
    • Method Detail

      • getValue

        T getValue()
        Collect internal value of the enum that implements this interface
        Returns:
        value