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

io.permazen.core.MapFieldRemoveNotifier 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 MapFieldRemoveNotifier extends MapFieldNotifier {

    final K oldKey;
    final V oldValue;

    MapFieldRemoveNotifier(MapField field, ObjId id, K oldKey, V oldValue) {
        super(field, id);
        this.oldKey = oldKey;
        this.oldValue = oldValue;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy