Class EndFlag

    • Field Detail

      • END_FLAG_DEFAULT

        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>
        Parameters:
        input - String to parse.
        Returns:
        Parsed value, if valid.
        Throws:
        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>
        Parameters:
        newValue - New flag value.
        Returns:
        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>
        Returns:
        An example flag value.