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.-
Nested Class Summary
Nested classes/interfaces inherited from class MappableElement
MappableElement.GSONAdapter -
Field Summary
Fields inherited from class MappableElement
mapper -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MappableElement
getDataListEntry, getDataListEntryType, getMappedValue, getMappedValue, getMappingSource, getNameMapper, getUnmappedValue, getWorkspace, isEmpty, isManaged, isValidReference, setManaged, setWorkspace, toString, validateReference
-
Constructor Details
-
UniquelyMappedElement
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classMappableElement
-
equals
- Overrides:
equalsin classMappableElement
-