use of com.ait.lienzo.client.core.Attribute in project lienzo-core by ahome-it.
the class AttributesChangedEvent method one.
public final boolean one(final Attribute... attributes) {
int count = 0;
final NFastStringSet seen = new NFastStringSet();
for (final Attribute attribute : attributes) {
final String name = attribute.getProperty();
if (false == seen.contains(name)) {
if (m_changed.contains(name)) {
if (++count > 1) {
return false;
}
seen.add(name);
}
}
}
return (0 != count);
}
use of com.ait.lienzo.client.core.Attribute in project lienzo-core by ahome-it.
the class AttributesChangedEvent method count.
public final int count(final List<Attribute> attributes) {
int count = 0;
final NFastStringSet seen = new NFastStringSet();
for (final Attribute attribute : attributes) {
final String name = attribute.getProperty();
if (false == seen.contains(name)) {
if (m_changed.contains(name)) {
count++;
seen.add(name);
}
}
}
return count;
}
use of com.ait.lienzo.client.core.Attribute 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 (final Attribute attribute : attributes) {
final String name = attribute.getProperty();
if (false == seen.contains(name)) {
if (m_changed.contains(name)) {
count++;
seen.add(name);
}
}
}
return count;
}
Aggregations