java.lang.Object
java.lang.Record
com.ntak.pearlzip.archive.model.LicenseInfo
public record LicenseInfo(String canonicalName, String version, String licenseType, String licenseFile, String url)
extends Record
Java record holding license information of dependencies for presentation into the UI.
- Author:
- Aashutos Kakshepati
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelicenseFile
record component.Returns the value of thelicenseType
record component.toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.version()
Returns the value of theversion
record component.
-
Constructor Details
-
LicenseInfo
public LicenseInfo(String canonicalName, String version, String licenseType, String licenseFile, String url) Creates an instance of aLicenseInfo
record class.- Parameters:
canonicalName
- the value for thecanonicalName
record componentversion
- the value for theversion
record componentlicenseType
- the value for thelicenseType
record componentlicenseFile
- the value for thelicenseFile
record componenturl
- the value for theurl
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
canonicalName
Returns the value of thecanonicalName
record component.- Returns:
- the value of the
canonicalName
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
licenseType
Returns the value of thelicenseType
record component.- Returns:
- the value of the
licenseType
record component
-
licenseFile
Returns the value of thelicenseFile
record component.- Returns:
- the value of the
licenseFile
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-