Record Class DittoException.ValidationExceptionReason.MissingKey
java.lang.Object
java.lang.Record
com.ditto.java.DittoException.ValidationExceptionReason.MissingKey
- All Implemented Interfaces:
DittoException.ValidationExceptionReason
- Enclosing interface:
DittoException.ValidationExceptionReason
public static record DittoException.ValidationExceptionReason.MissingKey(@NonNull String keyName)
extends Record
implements DittoException.ValidationExceptionReason
The given Map was missing a required entry for the given key name.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ditto.java.DittoException.ValidationExceptionReason
DittoException.ValidationExceptionReason.Base64Invalid, DittoException.ValidationExceptionReason.DepthLimitExceeded, DittoException.ValidationExceptionReason.InternalSubsystemUnavailable, DittoException.ValidationExceptionReason.InvalidCbor, DittoException.ValidationExceptionReason.InvalidDittoConfig, DittoException.ValidationExceptionReason.InvalidJson, DittoException.ValidationExceptionReason.MissingKey, DittoException.ValidationExceptionReason.NotAMap, DittoException.ValidationExceptionReason.NotJsonCompatible, DittoException.ValidationExceptionReason.SizeLimitExceeded, DittoException.ValidationExceptionReason.UnknownSyncScope -
Constructor Summary
ConstructorsConstructorDescriptionMissingKey(@NonNull String keyName) Creates an instance of aMissingKeyrecord 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.@NonNull StringkeyName()Returns the value of thekeyNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MissingKey
Creates an instance of aMissingKeyrecord class.- Parameters:
keyName- the value for thekeyNamerecord 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). -
keyName
Returns the value of thekeyNamerecord component.- Returns:
- the value of the
keyNamerecord component
-