
org.hydracache.util.SimpleSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Hydra Cache common utility module
The newest version!
package org.hydracache.util;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
public class SimpleSet implements Iterable {
protected Set container = new LinkedHashSet();
public SimpleSet() {
}
public SimpleSet(Collection collection) {
container.addAll(collection);
}
public int size() {
return container.size();
}
public boolean contains(T element) {
return container.contains(element);
}
public void add(T element) {
container.add(element);
}
@Override
public Iterator iterator() {
return container.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy