Interface ChangeRecord.Entry<K,V>
- Enclosing interface:
ChangeRecord<K,V>
public static interface ChangeRecord.Entry<K,V>
Represents the key, value and name of the Participant from
which the entry originated.
-
Method Summary
Modifier and TypeMethodDescription<T> Textract(ValueExtractor<V, T> extractor) Extract a value from the entry value using theValueExtractor.getKey()Obtain the key corresponding to this entry.Obtain the name of the Participant from which the entry originated.getValue()Obtain the value corresponding to this entry.
-
Method Details
-
getSource
String getSource()Obtain the name of the Participant from which the entry originated.- Returns:
- name of the source Participant
-
getKey
K getKey()Obtain the key corresponding to this entry.- Returns:
- key
-
getValue
V getValue()Obtain the value corresponding to this entry.- Returns:
- value
-
extract
Extract a value from the entry value using theValueExtractor.- Type Parameters:
T- the type of value that will be extracted- Parameters:
extractor- a ValueExtractor to apply to the Entry's key or value- Returns:
- the extracted value
-