java.lang.Object
org.incendo.cloud.parser.standard.NumberParser<C,N,R>
- All Implemented Interfaces:
ArgumentParser<C,,N> SuggestionProviderHolder<C>
- Direct Known Subclasses:
ByteParser,DoubleParser,FloatParser,IntegerParser,LongParser,ShortParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser
ArgumentParser.FutureArgumentParser<C,T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.parser.ArgumentParser
flatMap, flatMapSuccess, mapSuccess, parse, parseFuture, suggestionProvider
-
Constructor Details
-
NumberParser
-
-
Method Details
-
range
Returns the range of acceptable values.- Returns:
- acceptable value range
-
hasMax
public abstract boolean hasMax()Returns whether this parser has a maximum value set.In other words, whether the
maximumof it'srange()is different than the default maximum value.- Returns:
- whether the parser has a maximum set
-
hasMin
public abstract boolean hasMin()Returns whether this parser has a minimum value set.In other words, whether the
minimumof it'srange()is different than the default minimum value.- Returns:
- whether the parser has a minimum set
-