Record Class ElementServiceMetadata
java.lang.Object
java.lang.Record
dev.getelements.elements.sdk.model.system.ElementServiceMetadata
- Record Components:
implementation- the implementationexport- the export
public record ElementServiceMetadata(ElementServiceImplementationMetadata implementation, ElementServiceExportMetadata export)
extends Record
A DTO record for Element Service Metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionElementServiceMetadata(ElementServiceImplementationMetadata implementation, ElementServiceExportMetadata export) Creates an instance of aElementServiceMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.export()Returns the value of theexportrecord component.static ElementServiceMetadatafrom(ElementServiceRecord elementServiceRecord) Convenience method to construct an ElementServiceMetadata from an ElementServiceRecord.final inthashCode()Returns a hash code value for this object.Returns the value of theimplementationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementServiceMetadata
public ElementServiceMetadata(ElementServiceImplementationMetadata implementation, ElementServiceExportMetadata export) Creates an instance of aElementServiceMetadatarecord class.- Parameters:
implementation- the value for theimplementationrecord componentexport- the value for theexportrecord component
-
-
Method Details
-
from
Convenience method to construct an ElementServiceMetadata from an ElementServiceRecord.- Parameters:
elementServiceRecord- the ElementServiceRecord- Returns:
- the newly created ElementServiceMetadata
-
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). -
implementation
Returns the value of theimplementationrecord component.- Returns:
- the value of the
implementationrecord component
-
export
Returns the value of theexportrecord component.- Returns:
- the value of the
exportrecord component
-