Class MapChangeTrackerImpl

    • Constructor Detail

      • MapChangeTrackerImpl

        public MapChangeTrackerImpl​(java.util.Map map,
                                    boolean autoOff)
        Constructor; supply delegate map.
    • Method Detail

      • getTrackKeys

        public boolean getTrackKeys()
        Description copied from interface: MapChangeTracker
        Whether to track keys or values. Defaults to keys. If you set to values, it is assumed there is a 1-1 correlation between keys and values in this map.
        Specified by:
        getTrackKeys in interface MapChangeTracker
      • setTrackKeys

        public void setTrackKeys​(boolean keys)
        Description copied from interface: MapChangeTracker
        Whether to track keys or values. Defaults to keys. If you set to values, it is assumed there is a 1-1 correlation between keys and values in this map.
        Specified by:
        setTrackKeys in interface MapChangeTracker
      • added

        public void added​(java.lang.Object key,
                          java.lang.Object val)
        Description copied from interface: MapChangeTracker
        Record that the given entry was added to the map.
        Specified by:
        added in interface MapChangeTracker
      • removed

        public void removed​(java.lang.Object key,
                            java.lang.Object val)
        Description copied from interface: MapChangeTracker
        Record that the given entry was removed from the map.
        Specified by:
        removed in interface MapChangeTracker
      • changed

        public void changed​(java.lang.Object key,
                            java.lang.Object oldVal,
                            java.lang.Object newVal)
        Description copied from interface: MapChangeTracker
        Record that the given entry was altered.
        Specified by:
        changed in interface MapChangeTracker