Interface Version

All Superinterfaces:
Comparable<Version>

public interface Version extends Comparable<Version>
Unit version interface. Version implementations should be comparable.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Version
    Implementation of Version interface with special latest logic.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Version
    Parse version from String.
    Render version representation in String format.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Field Details

    • LATEST

      static final Version LATEST
      Implementation of Version interface with special latest logic. This version have special unique representation. Moreover by convention this implementation should be oldest version of any another independent of implementation.
  • Method Details

    • render

      String render()
      Render version representation in String format.
      Returns:
      version string representation.
    • parseVersion

      static Version parseVersion(String s)
      Parse version from String.
      Parameters:
      s - string version representation.
      Returns:
      Version instance of