Record Class JavaReleaseInfo
java.lang.Object
java.lang.Record
net.mcreator.java.JavaReleaseInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJavaReleaseInfo(String vendor, String version) Creates an instance of aJavaReleaseInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static JavaReleaseInfofromJavaHome(File javaHome) Parse the 'release' file from the given JAVA_HOME path.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.vendor()Returns the value of thevendorrecord component.version()Returns the value of theversionrecord component.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
JavaReleaseInfo
-
-
Method Details
-
fromJavaHome
Parse the 'release' file from the given JAVA_HOME path.- Parameters:
javaHome- path to JAVA_HOME- Returns:
- JavaReleaseInfo with vendor and version
-
toString
-
hashCode
-
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). -
vendor
Returns the value of thevendorrecord component.- Returns:
- the value of the
vendorrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-