aQute.lib.collections.Logic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bnd Show documentation
Show all versions of bnd Show documentation
A command line utility and Ant plugin to wrap, build, or examine bundles.
package aQute.lib.collections;
import java.util.*;
public class Logic {
public static Collection retain(Collection first, Collection... sets) {
Set result = new HashSet(first);
for (Collection set : sets) {
result.retainAll(set);
}
return result;
}
public static Collection remove(Collection first, Collection... sets) {
Set result = new HashSet(first);
for (Collection set : sets) {
result.removeAll(set);
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy