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

io.permazen.change.SetFieldChange Maven / Gradle / Ivy

The newest version!

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

package io.permazen.change;

import io.permazen.annotation.OnChange;

/**
 * Notification object that gets passed to {@link OnChange @OnChange}-annotated methods when a set field changes.
 *
 * @param  the type of the object containing the changed field
 */
public abstract class SetFieldChange extends FieldChange {

    /**
     * Constructor.
     *
     * @param jobj Java object containing the set field that changed
     * @param fieldName the name of the field that changed
     * @throws IllegalArgumentException if {@code jobj} or {@code fieldName} is null
     */
    protected SetFieldChange(T jobj, String fieldName) {
        super(jobj, fieldName);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy