Class TimedFlag<T,F extends PlotFlag<TimedFlag.Timed<T>,F>>
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<TimedFlag.Timed<T>,F>
com.plotsquared.core.plot.flag.types.TimedFlag<T,F>
public abstract class TimedFlag<T,F extends PlotFlag<TimedFlag.Timed<T>,F>>
extends PlotFlag<TimedFlag.Timed<T>,F>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmerge(@NonNull TimedFlag.Timed<T> newValue) Merge this flag's value with another value and return an instance holding the merged value.protected abstract TmergeValue(T other) Parse a string into a flag, and throw an exception in the case that the string does not represent a valid flag value.protected abstract TparseValue(String input) 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.PlotFlag
canEqual, createFlagInstance, equals, flagOf, getExample, getFlagCategory, getFlagDescription, getFlagName, getName, getTabCompletions, getValue, hashCode, isValuedPermission
-
Constructor Details
-
TimedFlag
-
-
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<TimedFlag.Timed<T>,F extends PlotFlag<TimedFlag.Timed<T>, F>> - Parameters:
input- String to parse.- Returns:
- Parsed value, if valid.
- Throws:
FlagParseException- If the value could not be parsed.
-
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<TimedFlag.Timed<T>,F extends PlotFlag<TimedFlag.Timed<T>, F>> - Parameters:
newValue- New flag value.- Returns:
- Flag containing parsed flag value.
-
parseValue
- Throws:
FlagParseException
-
mergeValue
-
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<TimedFlag.Timed<T>,F extends PlotFlag<TimedFlag.Timed<T>, F>> - Returns:
- String representation of the flag
-