Record Class MultiReleaseUtil.MultiReleaseInfo
java.lang.Object
java.lang.Record
org.apache.tomcat.util.scan.MultiReleaseUtil.MultiReleaseInfo
- Record Components:
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
- Enclosing class:
MultiReleaseUtil
Provides the return value for calls to
MultiVersionUtil#parseVersion(String).-
Constructor Summary
ConstructorsConstructorDescriptionMultiReleaseInfo(int version, int namePos) Creates an instance of aMultiReleaseInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisValid()Has a valid multi-release entry been found?intnamePos()Returns the value of thenamePosrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
MultiReleaseInfo
-
-
Method Details
-
isValid
public boolean isValid()Has a valid multi-release entry been found?- Returns:
trueif a valid multi-release entry was found, otherwisefalse
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
version
-
namePos
-