Record Class MbrUpdater.MavenVersionResult
java.lang.Object
java.lang.Record
aQute.bnd.repository.maven.provider.MbrUpdater.MavenVersionResult
- Enclosing class:
- MbrUpdater
public static record MbrUpdater.MavenVersionResult(aQute.bnd.version.MavenVersion mavenVersion, boolean mavenVersionAvailable)
extends Record
Container for a MavenVersion which may or may not be available from maven
central.
-
Constructor Summary
ConstructorsConstructorDescriptionMavenVersionResult(aQute.bnd.version.MavenVersion mavenVersion, boolean mavenVersionAvailable) Creates an instance of aMavenVersionResultrecord 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.aQute.bnd.version.MavenVersionReturns the value of themavenVersionrecord component.booleanReturns the value of themavenVersionAvailablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MavenVersionResult
public MavenVersionResult(aQute.bnd.version.MavenVersion mavenVersion, boolean mavenVersionAvailable) Creates an instance of aMavenVersionResultrecord class.- Parameters:
mavenVersion- the value for themavenVersionrecord componentmavenVersionAvailable- the value for themavenVersionAvailablerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
mavenVersion
public aQute.bnd.version.MavenVersion mavenVersion()Returns the value of themavenVersionrecord component.- Returns:
- the value of the
mavenVersionrecord component
-
mavenVersionAvailable
public boolean mavenVersionAvailable()Returns the value of themavenVersionAvailablerecord component.- Returns:
- the value of the
mavenVersionAvailablerecord component
-