use of org.vertexium.Property in project vertexium by visallo.
the class PropertyCollection method getProperty.
public synchronized Property getProperty(String key, String name, int index) {
Map<String, ConcurrentSkipListSet<Property>> propertiesByKey = propertiesByNameAndKey.get(name);
if (propertiesByKey == null) {
return null;
}
ConcurrentSkipListSet<Property> properties = propertiesByKey.get(key);
if (properties == null) {
return null;
}
for (Property property : properties) {
if (index == 0) {
return property;
}
index--;
}
return null;
}
Aggregations