All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permazen.core.MapFieldReplaceNotifier Maven / Gradle / Ivy

Go to download

Permazen core API classes which provide objects, fields, indexes, queries, and schema management on top of a key/value store.

The newest version!

/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package io.permazen.core;

import java.util.NavigableSet;

final class MapFieldReplaceNotifier extends MapFieldNotifier {

    final K key;
    final V oldValue;
    final V newValue;

    MapFieldReplaceNotifier(MapField field, ObjId id, K key, V oldValue, V newValue) {
        super(field, id);
        this.key = key;
        this.oldValue = oldValue;
        this.newValue = newValue;
    }

    @Override
    public void notify(Transaction tx, MapFieldChangeListener listener, int[] path, NavigableSet referrers) {
        listener.onMapFieldReplace(tx, this.id, this.field, path, referrers, this.key, this.oldValue, this.newValue);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy