Class DoubleFlag<F extends NumberFlag<Double,F>>
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<N,F>
com.plotsquared.core.plot.flag.types.NumberFlag<Double,F>
com.plotsquared.core.plot.flag.types.DoubleFlag<F>
- Direct Known Subclasses:
PriceFlag
-
Field Summary
Fields inherited from class com.plotsquared.core.plot.flag.types.NumberFlag
maximum, minimum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAn example of a string that would parse into a valid flag value.boolean
Get if the flag's permission should check for values.Merge this flag's value with another value and return an instance holding the merged value.parseNumber
(String input) Parse the raw string input to the number type.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.NumberFlag
parse
Methods inherited from class com.plotsquared.core.plot.flag.PlotFlag
canEqual, createFlagInstance, equals, flagOf, getFlagCategory, getFlagDescription, getFlagName, getName, getTabCompletions, getValue, hashCode
-
Constructor Details
-
Method Details
-
merge
Description copied from class:PlotFlag
Merge this flag's value with another value and return an instance holding the merged value. -
getExample
Description copied from class:PlotFlag
An example of a string that would parse into a valid flag value.- Specified by:
getExample
in classPlotFlag<Double,
F extends NumberFlag<Double, F>> - Returns:
- An example flag 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. -
parseNumber
Description copied from class:NumberFlag
Parse the raw string input to the number type.- Specified by:
parseNumber
in classNumberFlag<Double,
F extends NumberFlag<Double, F>> - Parameters:
input
- the string to parse the number from.- Returns:
- the parsed number.
- Throws:
FlagParseException
- if the number couldn't be parsed.
-
isValuedPermission
Description copied from class:PlotFlag
Get if the flag's permission should check for values. E.g. plots.flag.set.music.VALUE- Overrides:
isValuedPermission
in classPlotFlag<Double,
F extends NumberFlag<Double, F>> - Returns:
- if valued permission
-