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

io.permazen.core.SetFieldAddNotifier 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 SetFieldAddNotifier extends SetFieldNotifier {

    final E newValue;

    SetFieldAddNotifier(SetField field, ObjId id, E newValue) {
        super(field, id);
        this.newValue = newValue;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy