Class DiffableStringMap

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,​java.lang.String>, Diffable<DiffableStringMap>, Writeable

    public class DiffableStringMap
    extends java.util.AbstractMap<java.lang.String,​java.lang.String>
    implements Diffable<DiffableStringMap>
    This is a Map<String, String> that implements AbstractDiffable so it can be used for cluster state purposes
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DiffableStringMap.DiffableStringMapDiff
      Represents differences between two DiffableStringMaps.
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Diff<DiffableStringMap> diff​(DiffableStringMap previousState)
      Returns serializable object representing differences between this and previousState
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> entrySet()  
      static Diff<DiffableStringMap> readDiffFrom​(StreamInput in)  
      void writeTo​(StreamOutput out)
      Write this into the StreamOutput.
      • Methods inherited from class java.util.AbstractMap

        clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Method Detail

      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​java.lang.String>
        Specified by:
        entrySet in class java.util.AbstractMap<java.lang.String,​java.lang.String>