Interface NumberJsonParser<T extends Number>
- Type Parameters:
T- The type of number to return.
- All Superinterfaces:
JsonParser<T>
- All Known Implementing Classes:
NegativeIntJsonParser, NonnegativeIntJsonParser, NonpositiveIntJsonParser, PositiveIntJsonParser
Parses a number in some way.
-
Method Summary
Modifier and TypeMethodDescriptionparse(@NonNull com.google.gson.JsonElement element, ElytrasOfFire plugin) Parse a givenJsonElement.
-
Method Details
-
parse
T parse(@NonNull com.google.gson.JsonElement element, ElytrasOfFire plugin) throws EoFNumberJsonParseException Description copied from interface:JsonParserParse a givenJsonElement.- Specified by:
parsein interfaceJsonParser<T extends Number>- Parameters:
element- The element to parse and validate.plugin- The Elytras of Fire plugin instance.- Returns:
- The parsed and validated object.
- Throws:
EoFNumberJsonParseException
-