Record Class EntityMetadata
java.lang.Object
java.lang.Record
com.samupert.univpm.eurostat.common.metadata.EntityMetadata
- Record Components:
entity
- the entity name.fields
- the list of fields of the entity. SeeEntityFieldMetadata
.
Represents the metadata of an entity.
-
Constructor Summary
ConstructorDescriptionEntityMetadata
(String entity, List<EntityFieldMetadata> fields) Creates an instance of aEntityMetadata
record class. -
Method Summary
Modifier and TypeMethodDescriptionentity()
Returns the value of theentity
record component.final boolean
Indicates whether some other object is "equal to" this one.fields()
Returns the value of thefields
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
entity
Returns the value of theentity
record component.- Returns:
- the value of the
entity
record component
-
fields
Returns the value of thefields
record component.- Returns:
- the value of the
fields
record component
-