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.
-
Constructor Summary
ConstructorsConstructorDescriptionEntryEventMessagePayload
(K key, @Nullable V value, @Nullable V oldValue) Creates an instance of aEntryEventMessagePayload
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.@Nullable V
oldValue()
Returns the value of theoldValue
record component.final String
toString()
Returns a string representation of this record class.@Nullable V
value()
Returns the value of thevalue
record component.
-
Constructor Details
-
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
-
value
-
oldValue
-