Class NumberFlag<N extends Number & Comparable<N>,F extends PlotFlag<N,F>>
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<N,F>
com.plotsquared.core.plot.flag.types.NumberFlag<N,F>
- Direct Known Subclasses:
DoubleFlag
,IntegerFlag
,LongFlag
public abstract class NumberFlag<N extends Number & Comparable<N>,F extends PlotFlag<N,F>>
extends PlotFlag<N,F>
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.plotsquared.core.plot.flag.PlotFlag
canEqual, createFlagInstance, equals, flagOf, getExample, getFlagCategory, getFlagDescription, getFlagName, getName, getTabCompletions, getValue, hashCode, isValuedPermission, merge, toString
-
Field Details
-
minimum
-
maximum
-
-
Constructor Details
-
Method Details
-
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. -
parseNumber
Parse the raw string input to the number type.- Parameters:
input
- the string to parse the number from.- Returns:
- the parsed number.
- Throws:
FlagParseException
- if the number couldn't be parsed.
-