Package VASSAL.tools.version
Interface VersionTokenizer
- All Known Implementing Classes:
VassalVersionTokenizer
Deprecated, for removal: This API element is subject to removal in a future version.
Converts version numbers into a series of integers.
The integers thus returned from two different tokenizers may be
compared to determine the temporal ordering of two versions. Invalid
version numbers may be parsed up to the point where they become invalid.
- Since:
- 3.1.0
- Author:
- Joel Uckelman
- See Also:
VersionFormatException
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrue
if the versionString
is not fully parsed.int
next()
Deprecated, for removal: This API element is subject to removal in a future version.Returns an integer representing the next token.
-
Method Details
-
hasNext
boolean hasNext()Deprecated, for removal: This API element is subject to removal in a future version.Returnstrue
if the versionString
is not fully parsed.- Returns:
true
ifnext()
will return more integers
-
next
Deprecated, for removal: This API element is subject to removal in a future version.Returns an integer representing the next token.- Returns:
- the integer representing the next token
- Throws:
VersionFormatException
- if the string deviates from the current version formatting rules at the next token.NoSuchElementException
- if this method is called whenhasNext()
would returnfalse
.
-