Record Class AttachmentsHelper.AttachmentWithBinary
java.lang.Object
java.lang.Record
org.tailormap.api.geotools.featuresources.AttachmentsHelper.AttachmentWithBinary
- Enclosing class:
AttachmentsHelper
public static record AttachmentsHelper.AttachmentWithBinary(@NotNull AttachmentMetadata attachmentMetadata, @NotNull ByteBuffer attachment)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentWithBinary(@NotNull AttachmentMetadata attachmentMetadata, @NotNull ByteBuffer attachment) Creates an instance of aAttachmentWithBinaryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ByteBufferReturns the value of theattachmentrecord component.@NotNull AttachmentMetadataReturns the value of theattachmentMetadatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AttachmentWithBinary
public AttachmentWithBinary(@NotNull @NotNull AttachmentMetadata attachmentMetadata, @NotNull @NotNull ByteBuffer attachment) Creates an instance of aAttachmentWithBinaryrecord class.- Parameters:
attachmentMetadata- the value for theattachmentMetadatarecord componentattachment- the value for theattachmentrecord component
-
-
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). -
attachmentMetadata
Returns the value of theattachmentMetadatarecord component.- Returns:
- the value of the
attachmentMetadatarecord component
-
attachment
Returns the value of theattachmentrecord component.- Returns:
- the value of the
attachmentrecord component
-