Record Class JdkInstallation
java.lang.Object
java.lang.Record
com.dua3.gradle.jdkprovider.local.JdkInstallation
- Record Components:
jdkHome- the filesystem path to the JDK home directory.jdkSpec- the JDK specification.
Represents the specification of a JDK installation, consisting of the installation path
and the JDK specification.
-
Constructor Summary
ConstructorsConstructorDescriptionJdkInstallation(Path jdkHome, JdkSpec jdkSpec) Creates an instance of aJdkInstallationrecord 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.jdkHome()Returns the value of thejdkHomerecord component.jdkSpec()Returns the value of thejdkSpecrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
jdkHome
Returns the value of thejdkHomerecord component.- Returns:
- the value of the
jdkHomerecord component
-
jdkSpec
Returns the value of thejdkSpecrecord component.- Returns:
- the value of the
jdkSpecrecord component
-