Record Class DittoException.StoreExceptionReason.NonStringKeyInDocument
java.lang.Object
java.lang.Record
com.ditto.java.DittoException.StoreExceptionReason.NonStringKeyInDocument
- All Implemented Interfaces:
DittoException.StoreExceptionReason
- Enclosing interface:
DittoException.StoreExceptionReason
public static record DittoException.StoreExceptionReason.NonStringKeyInDocument(byte[] key)
extends Record
implements DittoException.StoreExceptionReason
The document, represented as a CBOR map, had a key that was not a string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ditto.java.DittoException.StoreExceptionReason
DittoException.StoreExceptionReason.AttachmentCopyTargetAlreadyExists, DittoException.StoreExceptionReason.AttachmentDataRetrievalError, DittoException.StoreExceptionReason.AttachmentFileCopyError, DittoException.StoreExceptionReason.AttachmentFileNotFound, DittoException.StoreExceptionReason.AttachmentFilePermissionDenied, DittoException.StoreExceptionReason.AttachmentNotFound, DittoException.StoreExceptionReason.AttachmentTokenInvalid, DittoException.StoreExceptionReason.BackendError, DittoException.StoreExceptionReason.CrdtError, DittoException.StoreExceptionReason.DocumentContentEncodingFailed, DittoException.StoreExceptionReason.DocumentNotFound, DittoException.StoreExceptionReason.FailedToCopyAttachment, DittoException.StoreExceptionReason.FailedToCreateAttachment, DittoException.StoreExceptionReason.FailedToDecodeCounter, DittoException.StoreExceptionReason.FailedToDecodeData, DittoException.StoreExceptionReason.FailedToDecodeDocument, DittoException.StoreExceptionReason.FailedToDecodeValue, DittoException.StoreExceptionReason.FailedToEncodeValue, DittoException.StoreExceptionReason.FailedToFetchAttachment, DittoException.StoreExceptionReason.FailedToGetDocumentData, DittoException.StoreExceptionReason.FailedToGetDocumentIDData, DittoException.StoreExceptionReason.FailedToInitializeDittoDirectory, DittoException.StoreExceptionReason.InvalidCrdtType, DittoException.StoreExceptionReason.InvalidDocumentStructure, DittoException.StoreExceptionReason.InvalidLiveQueryId, DittoException.StoreExceptionReason.InvalidValueForCrdt, DittoException.StoreExceptionReason.NoIdPresentInDocument, DittoException.StoreExceptionReason.NonStringKeyInDocument, DittoException.StoreExceptionReason.PersistenceDirectoryLocked, DittoException.StoreExceptionReason.QueryArgumentsInvalid, DittoException.StoreExceptionReason.QueryCompilationFailed, DittoException.StoreExceptionReason.QueryError, DittoException.StoreExceptionReason.QueryInvalid, DittoException.StoreExceptionReason.QueryNotSupported, DittoException.StoreExceptionReason.TransactionReadOnly -
Constructor Summary
ConstructorsConstructorDescriptionNonStringKeyInDocument(byte[] key) Creates an instance of aNonStringKeyInDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NonStringKeyInDocument
public NonStringKeyInDocument(byte[] key) Creates an instance of aNonStringKeyInDocumentrecord class.- Parameters:
key- the value for thekeyrecord component
-
-
Method Details
-
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). -
key
public byte[] key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-