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

test.ca.odell.glazedlists.calculation.PropertyChangeCounter Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
/* Glazed Lists                                                 (c) 2003-2007 */
/* http://publicobject.com/glazedlists/                      publicobject.com,*/
/*                                                     O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.calculation;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeEvent;

class PropertyChangeCounter implements PropertyChangeListener {
    private int count;

    public void propertyChange(PropertyChangeEvent evt) {
        count++;
    }

    public int getCountAndReset() {
        int result = count;
        count = 0;
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy