Record Class TmxPropertyMetadataRegistry.TypeMetadata
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.environment.tilemap.TmxPropertyMetadataRegistry.TypeMetadata
- Record Components:
typeName- The serialized type identifier.displayName- The editor-facing type name.description- The canonical English description.resourceKey- The optional localization key.
- Enclosing class:
TmxPropertyMetadataRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionTypeMetadata(String typeName, String displayName, String description, String resourceKey) Creates an instance of aTypeMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Gets the localized description if available, falling back to the canonical English description.final inthashCode()Returns a hash code value for this object.Returns the value of theresourceKeyrecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
TypeMetadata
Creates an instance of aTypeMetadatarecord class.- Parameters:
typeName- the value for thetypeNamerecord componentdisplayName- the value for thedisplayNamerecord componentdescription- the value for thedescriptionrecord componentresourceKey- the value for theresourceKeyrecord component
-
-
Method Details
-
getTranslatedDescription
Gets the localized description if available, falling back to the canonical English description.- Returns:
- The localized or canonical description.
-
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). -
typeName
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
resourceKey
Returns the value of theresourceKeyrecord component.- Returns:
- the value of the
resourceKeyrecord component
-