Class DoneFlag
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<String,F>
com.plotsquared.core.plot.flag.types.StringFlag<DoneFlag>
com.plotsquared.core.plot.flag.implementations.DoneFlag
- All Implemented Interfaces:
InternalFlag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DoneFlag
An example of a string that would parse into a valid flag value.static boolean
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
isValuedPermission
Methods inherited from class com.plotsquared.core.plot.flag.PlotFlag
canEqual, createFlagInstance, equals, getFlagCategory, getFlagDescription, getFlagName, getName, getTabCompletions, getValue, hashCode
-
Constructor Details
-
DoneFlag
Construct a new flag instance.- Parameters:
value
- Flag value
-
-
Method Details
-
isDone
-
parse
Description copied from class:PlotFlag
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. -
merge
Description copied from class:PlotFlag
Merge this flag's value with another value and return an instance holding the merged value. -
toString
Description copied from class:PlotFlag
Returns a string representation of the flag instance, that when passed throughPlotFlag.parse(String)
will result in an equivalent instance of the flag. -
getExample
Description copied from class:PlotFlag
An example of a string that would parse into a valid flag value.- Specified by:
getExample
in classPlotFlag<String,
DoneFlag> - Returns:
- An example flag value.
-
flagOf
-