Class MultiReleaseUtil.MultiReleaseInfo
java.lang.Object
org.apache.tomcat.util.scan.MultiReleaseUtil.MultiReleaseInfo
- Enclosing class:
MultiReleaseUtil
Provides the return value for calls to
MultiVersionUtil#parseVersion(String).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
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-1if the version was invalidnamePos- The start position of the name. The first character after the '/' after the version.-1if 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:
trueif a valid multi-release entry was found, otherwisefalse
-