org.aksw.commons.collections.diff.SetDiff Maven / Gradle / Ivy
package org.aksw.commons.collections.diff;
import com.google.common.collect.Sets;
import java.util.Set;
/**
* @author Claus Stadler
*
* Date: 7/12/11
* Time: 10:52 PM
*/
public class SetDiff
extends CollectionDiff>
{
public SetDiff(Set newItems, Set oldItems)
{
super(
Sets.difference(newItems, oldItems),
Sets.difference(oldItems, newItems),
Sets.intersection(newItems, oldItems)
);
}
public SetDiff(Set added, Set removed, Set retained)
{
super(added, removed, retained);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy