Class FarewellFlag
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<String,F>
com.plotsquared.core.plot.flag.types.StringFlag<FarewellFlag>
com.plotsquared.core.plot.flag.implementations.FarewellFlag
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FarewellFlagAn example of a string that would parse into a valid flag value.Merge this flag's value with another value and return an instance holding the merged value.Parse a string into a flag, and throw an exception in the case that the string does not represent a valid flag value.toString()Returns a string representation of the flag instance, that when passed throughPlotFlag.parse(String)will result in an equivalent instance of the flag.Methods inherited from class com.plotsquared.core.plot.flag.types.StringFlag
isValuedPermissionMethods inherited from class com.plotsquared.core.plot.flag.PlotFlag
canEqual, createFlagInstance, equals, getFlagCategory, getFlagDescription, getFlagName, getName, getTabCompletions, getValue, hashCode
-
Field Details
-
FAREWELL_FLAG_EMPTY
-
-
Constructor Details
-
FarewellFlag
-
-
Method Details
-
parse
Description copied from class:PlotFlagParse 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:
parsein classPlotFlag<String,FarewellFlag> - Parameters:
input- String to parse.- Returns:
- Parsed value, if valid.
-
merge
Description copied from class:PlotFlagMerge this flag's value with another value and return an instance holding the merged value.- Specified by:
mergein classPlotFlag<String,FarewellFlag> - Parameters:
newValue- New flag value.- Returns:
- Flag containing parsed flag value.
-
toString
Description copied from class:PlotFlagReturns a string representation of the flag instance, that when passed throughPlotFlag.parse(String)will result in an equivalent instance of the flag.- Specified by:
toStringin classPlotFlag<String,FarewellFlag> - Returns:
- String representation of the flag
-
getExample
Description copied from class:PlotFlagAn example of a string that would parse into a valid flag value.- Specified by:
getExamplein classPlotFlag<String,FarewellFlag> - Returns:
- An example flag value.
-
flagOf
- Specified by:
flagOfin classPlotFlag<String,FarewellFlag>
-