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 Type
    Method
    Description
    <T> T
    extract(ValueExtractor<V,T> extractor)
    Extract a value from the entry value using the ValueExtractor.
    Obtain the key corresponding to this entry.
    Obtain the name of the Participant from which the entry originated.
    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

      <T> T extract(ValueExtractor<V,T> extractor)
      Extract a value from the entry value using the ValueExtractor.
      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