java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.MutationKeys
public record MutationKeys(byte[] indexKey, byte[] encKey, byte[] macKey, byte[] snapshotMacKey, byte[] patchMacKey)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for theencKeyrecord component.private static final intprivate final byte[]The field for theindexKeyrecord component.private final byte[]The field for themacKeyrecord component.private static final byte[]private final byte[]The field for thepatchMacKeyrecord component.private final byte[]The field for thesnapshotMacKeyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMutationKeys(byte[] indexKey, byte[] encKey, byte[] macKey, byte[] snapshotMacKey, byte[] patchMacKey) Creates an instance of aMutationKeysrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]encKey()Returns the value of theencKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]indexKey()Returns the value of theindexKeyrecord component.byte[]macKey()Returns the value of themacKeyrecord component.static MutationKeysof(byte[] key) byte[]Returns the value of thepatchMacKeyrecord component.byte[]Returns the value of thesnapshotMacKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
indexKey
private final byte[] indexKeyThe field for theindexKeyrecord component. -
encKey
private final byte[] encKeyThe field for theencKeyrecord component. -
macKey
private final byte[] macKeyThe field for themacKeyrecord component. -
snapshotMacKey
private final byte[] snapshotMacKeyThe field for thesnapshotMacKeyrecord component. -
patchMacKey
private final byte[] patchMacKeyThe field for thepatchMacKeyrecord component. -
EXPANDED_SIZE
private static final int EXPANDED_SIZE- See Also:
-
MUTATION_KEYS
private static final byte[] MUTATION_KEYS
-
-
Constructor Details
-
MutationKeys
public MutationKeys(byte[] indexKey, byte[] encKey, byte[] macKey, byte[] snapshotMacKey, byte[] patchMacKey) Creates an instance of aMutationKeysrecord class.- Parameters:
indexKey- the value for theindexKeyrecord componentencKey- the value for theencKeyrecord componentmacKey- the value for themacKeyrecord componentsnapshotMacKey- the value for thesnapshotMacKeyrecord componentpatchMacKey- the value for thepatchMacKeyrecord component
-
-
Method Details
-
of
-
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). -
indexKey
public byte[] indexKey()Returns the value of theindexKeyrecord component.- Returns:
- the value of the
indexKeyrecord component
-
encKey
public byte[] encKey()Returns the value of theencKeyrecord component.- Returns:
- the value of the
encKeyrecord component
-
macKey
public byte[] macKey()Returns the value of themacKeyrecord component.- Returns:
- the value of the
macKeyrecord component
-
snapshotMacKey
public byte[] snapshotMacKey()Returns the value of thesnapshotMacKeyrecord component.- Returns:
- the value of the
snapshotMacKeyrecord component
-
patchMacKey
public byte[] patchMacKey()Returns the value of thepatchMacKeyrecord component.- Returns:
- the value of the
patchMacKeyrecord component
-