Record Class TmxPropertyMetadataRegistry.PropertyMetadata
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.environment.tilemap.TmxPropertyMetadataRegistry.PropertyMetadata
- Record Components:
name- The serialized property name.description- The canonical English description.category- The editor grouping.type- The serialized value type.defaultValue- The default represented as text.resourceKey- The optional localization key.
- Enclosing class:
TmxPropertyMetadataRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.Returns the value of thedefaultValuerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Gets the localized description if a resource key translation is available, falling back to the canonical English description.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theresourceKeyrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
PropertyMetadata
public PropertyMetadata(String name, String description, String category, String type, String defaultValue, String resourceKey) Creates an instance of aPropertyMetadatarecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentcategory- the value for thecategoryrecord componenttype- the value for thetyperecord componentdefaultValue- the value for thedefaultValuerecord componentresourceKey- the value for theresourceKeyrecord component
-
-
Method Details
-
getTranslatedDescription
Gets the localized description if a resource key translation is 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). -
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
category
-
type
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
resourceKey
Returns the value of theresourceKeyrecord component.- Returns:
- the value of the
resourceKeyrecord component
-