Class MultiReleaseUtil.MultiReleaseInfo

java.lang.Object
org.apache.tomcat.util.scan.MultiReleaseUtil.MultiReleaseInfo
Enclosing class:
MultiReleaseUtil

public static class MultiReleaseUtil.MultiReleaseInfo extends Object
Provides the return value for calls to MultiVersionUtil#parseVersion(String).
  • Field Details

    • version

      public final int version
    • namePos

      public final int namePos
  • Constructor Details

    • MultiReleaseInfo

      public MultiReleaseInfo(int version, int namePos)
      Create a new result.
      Parameters:
      version - The version or -1 if the version was invalid
      namePos - The start position of the name. The first character after the '/' after the version. -1 if there was no '/' after the version or the version was not present
  • Method Details

    • isValid

      public boolean isValid()
      Has a valid multi-release entry been found?
      Returns:
      true if a valid multi-release entry was found, otherwise false