test.ca.odell.glazedlists.calculation.PropertyChangeCounter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glazedlists_java15 Show documentation
Show all versions of glazedlists_java15 Show documentation
Event-driven lists for dynamically filtered and sorted tables
/* 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