Enum GtfsKeyType

    • Method Detail

      • values

        public static GtfsKeyType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GtfsKeyType c : GtfsKeyType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GtfsKeyType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Get the value of the enum
        Returns:
        value of the enum
      • valueIn

        public static boolean valueIn​(EnumSet<GtfsKeyType> supportedKeys,
                                      String value)
        Verify if value is present in provided enumset's values (ignoring case)
        Parameters:
        supportedKeys - to check
        value - to check
        Returns:
        true when present, false otherwise
      • fromValue

        public static Optional<GtfsKeyType> fromValue​(String value)
        Construct enum from given value (ignoring case)
        Parameters:
        value - to construct enum from
        Returns:
        GtfsKeyType produced