Record Class NeoContainedVersion
java.lang.Object
java.lang.Record
dev.lukebemish.multisource.jarinjar.NeoContainedVersion
public record NeoContainedVersion(org.apache.maven.artifact.versioning.VersionRange range, org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNeoContainedVersion(org.apache.maven.artifact.versioning.VersionRange range, org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion) Creates an instance of aNeoContainedVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.versioning.ArtifactVersionReturns the value of theartifactVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.maven.artifact.versioning.VersionRangerange()Returns the value of therangerecord component.com.google.gson.JsonObjecttoJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NeoContainedVersion
public NeoContainedVersion(org.apache.maven.artifact.versioning.VersionRange range, org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion) Creates an instance of aNeoContainedVersionrecord class.- Parameters:
range- the value for therangerecord componentartifactVersion- the value for theartifactVersionrecord component
-
-
Method Details
-
toJson
public com.google.gson.JsonObject toJson() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
range
public org.apache.maven.artifact.versioning.VersionRange range()Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
artifactVersion
public org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion()Returns the value of theartifactVersionrecord component.- Returns:
- the value of the
artifactVersionrecord component
-