Package net.mcreator.generator.mapping
Class UniquelyMappedElement
java.lang.Object
net.mcreator.generator.mapping.MappableElement
net.mcreator.generator.mapping.UniquelyMappedElement
- All Implemented Interfaces:
IWorkspaceDependent
Used to make sure that the element is unique after mapping by overriding
hashCode()
and equals(Object)
methods
that compare the mapped values instead of the unmapped ones as done by the default implementation of MappableElement.-
Field Summary
Fields inherited from class net.mcreator.generator.mapping.MappableElement
mapper
-
Constructor Summary
-
Method Summary
Methods inherited from class net.mcreator.generator.mapping.MappableElement
getDataListEntry, getDataListEntryType, getMappedValue, getMappedValue, getUnmappedValue, getWorkspace, isEmpty, isManaged, isValidReference, setManaged, setWorkspace, toString, validateReference
-
Constructor Details
-
UniquelyMappedElement
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMappableElement
-
equals
- Overrides:
equals
in classMappableElement
-