Record Class SharedUtil.SimpleModuleIdentifier
java.lang.Object
java.lang.Record
net.minecraftforge.gradleutils.shared.SharedUtil.SimpleModuleIdentifier
- All Implemented Interfaces:
Serializable,org.gradle.api.artifacts.ModuleIdentifier
- Enclosing class:
SharedUtil
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleModuleIdentifier(String getGroup, String getName) Creates an instance of aSimpleModuleIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getGroup()Returns the value of thegetGrouprecord component.getName()Returns the value of thegetNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleModuleIdentifier
-
-
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). -
getGroup
Returns the value of thegetGrouprecord component.- Specified by:
getGroupin interfaceorg.gradle.api.artifacts.ModuleIdentifier- Returns:
- the value of the
getGrouprecord component
-
getName
Returns the value of thegetNamerecord component.- Specified by:
getNamein interfaceorg.gradle.api.artifacts.ModuleIdentifier- Returns:
- the value of the
getNamerecord component
-