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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
extract(ValueExtractor<V,T> extractor)
Extract a value from the entry value using theValueExtractor
.K
getKey()
Obtain the key corresponding to this entry.String
getSource()
Obtain the name of the Participant from which the entry originated.V
getValue()
Obtain the value corresponding to this entry.
-
-
-
Method Detail
-
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
<T> T extract(ValueExtractor<V,T> extractor)
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
-
-