Record Class NativeModuleLister.NativeModuleInfo
java.lang.Object
java.lang.Record
net.minecraft.util.NativeModuleLister.NativeModuleInfo
- Enclosing class:
NativeModuleLister
public static record NativeModuleLister.NativeModuleInfo(String name, Optional<NativeModuleLister.NativeModuleVersion> version)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thenamerecord component.private final Optional<NativeModuleLister.NativeModuleVersion> The field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNativeModuleInfo(String name, Optional<NativeModuleLister.NativeModuleVersion> version) Creates an instance of aNativeModuleInforecord 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.name()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
version
The field for theversionrecord component.
-
-
Constructor Details
-
NativeModuleInfo
Creates an instance of aNativeModuleInforecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-