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