
com.windowsazure.samples.MetadataCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa4azure Show documentation
Show all versions of jpa4azure Show documentation
jpa4azure, implements a subset of the JPA specification using Azure Storage for pesisting beans. see http://jpa4azure.codeplex.com for more information.
The newest version!
package com.windowsazure.samples;
import java.util.Iterator;
import java.util.Vector;
import com.windowsazure.samples.Metadata;
public final class MetadataCollection implements Iterable {
public MetadataCollection() {
collection = new Vector();
}
public void add(String name, String value) {
add(Metadata.buildValid(name, value));
}
public void add(Metadata metadata) {
collection.add(metadata);
}
public int getCount() {
return collection.size();
}
public Metadata getMetadata(String name) {
for (Metadata item : collection) {
if (item.getName().equals(name))
return item;
}
return null;
}
public Iterator iterator() {
return collection.iterator();
}
private Vector collection;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy