Search in sources :

Example 6 with NFastStringSet

use of com.ait.tooling.nativetools.client.collection.NFastStringSet in project lienzo-core by ahome-it.

the class AttributesChangedEvent method count.

public final int count(final Attribute... attributes) {
    int count = 0;
    final NFastStringSet seen = new NFastStringSet();
    for (Attribute attribute : attributes) {
        final String name = attribute.getProperty();
        if (false == seen.contains(name)) {
            if (m_changed.contains(name)) {
                count++;
                seen.add(name);
            }
        }
    }
    return count;
}
Also used : NFastStringSet(com.ait.tooling.nativetools.client.collection.NFastStringSet) Attribute(com.ait.lienzo.client.core.Attribute)

Aggregations

NFastStringSet (com.ait.tooling.nativetools.client.collection.NFastStringSet)6 Attribute (com.ait.lienzo.client.core.Attribute)4 RepeatingCommand (com.google.gwt.core.client.Scheduler.RepeatingCommand)1