Record Class EntryEventMessagePayload<K,V>
java.lang.Object
java.lang.Record
org.springframework.integration.hazelcast.message.EntryEventMessagePayload<K,V>
- Type Parameters:
K- the entry key typeV- the entry value type- Record Components:
key- The entry key.value- The entry value.oldValue- The entry old value if any.
public record EntryEventMessagePayload<K,V> (K key, @Nullable V value, @Nullable V oldValue)
extends Record
Hazelcast Message Payload for Entry Events.
- Since:
- 6.0
- Author:
- Eren Avsarogullari, Artem Bilan
-
Constructor Summary
ConstructorsConstructorDescriptionEntryEventMessagePayload(K key, @Nullable V value, @Nullable V oldValue) Creates an instance of aEntryEventMessagePayloadrecord 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.key()Returns the value of thekeyrecord component.@Nullable VoldValue()Returns the value of theoldValuerecord component.final StringtoString()Returns a string representation of this record class.@Nullable Vvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
oldValue
Returns the value of theoldValuerecord component.- Returns:
- the value of the
oldValuerecord component
-