Interface VersionTokenizer

All Known Implementing Classes:
VassalVersionTokenizer

@Deprecated(since="2020-08-28", forRemoval=true) public interface VersionTokenizer
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 Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns true if the version String is not fully parsed.
    int
    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.
      Returns true if the version String is not fully parsed.
      Returns:
      true if next() will return more integers
    • next

      int next() throws VersionFormatException
      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 when hasNext() would return false.