Class EndFlag

    • Field Detail


        public static final EndFlag END_FLAG_DEFAULT
    • Method Detail

      • parse

        public EndFlag parse​(@NotNull
                             @NotNull String input)
                      throws FlagParseException
        Description copied from class: WorldFlag
        Parse a string into a flag, and throw an exception in the case that the string does not represent a valid flag value. This instance won't change its state, but instead an instance holding the parsed flag value will be returned.
        Specified by:
        parse in class WorldFlag<String,​EndFlag>
        input - String to parse.
        Parsed value, if valid.
        FlagParseException - If the value could not be parsed.
      • merge

        public EndFlag merge​(@NotNull
                             @NotNull String newValue)
        Description copied from class: WorldFlag
        Merge this flag's value with another value and return an instance holding the merged value.
        Specified by:
        merge in class WorldFlag<String,​EndFlag>
        newValue - New flag value.
        Flag containing parsed flag value.
      • getExample

        public String getExample()
        Description copied from class: WorldFlag
        An example of a string that would parse into a valid flag value.
        Specified by:
        getExample in class WorldFlag<String,​EndFlag>
        An example flag value.