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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelicenseFilerecord component.Returns the value of thelicenseTyperecord component.toString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
LicenseInfo
public LicenseInfo(String canonicalName, String version, String licenseType, String licenseFile, String url) Creates an instance of aLicenseInforecord class.- Parameters:
canonicalName- the value for thecanonicalNamerecord componentversion- the value for theversionrecord componentlicenseType- the value for thelicenseTyperecord componentlicenseFile- the value for thelicenseFilerecord componenturl- the value for theurlrecord 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 thecanonicalNamerecord component.- Returns:
- the value of the
canonicalNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
licenseType
Returns the value of thelicenseTyperecord component.- Returns:
- the value of the
licenseTyperecord component
-
licenseFile
Returns the value of thelicenseFilerecord component.- Returns:
- the value of the
licenseFilerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-