public class SetDomain<T> extends java.util.LinkedHashSet<T> implements Domain
Constructor and Description |
---|
SetDomain()
Constructs an empty set domain
|
SetDomain(java.util.Set<T> set)
Constructs a new set domain with the specified set.
|
Modifier and Type | Method and Description |
---|---|
SetDomain<T> |
clone()
Clones the domain.
|
Domain |
diffStrong(Domain other)
Returns the result of strong difference.
|
Domain |
diffWeak(Domain other)
Returns the result of weak difference.
|
boolean |
equals(Domain other)
Checks if the other domain is equal to the current domain.
|
Domain |
intersect(Domain other)
Returns intersection of the two domains.
|
void |
kill(java.util.Set<Symbol> vars)
Kills the data containing the specified set of symbols.
|
Domain |
merge(Domain other)
Returns merge of the two domains (join operation).
|
java.lang.String |
toString() |
Domain |
union(Domain other)
Returns union of the two domains if applicable.
|
add, clear, contains, isEmpty, iterator, remove, size
public SetDomain()
public SetDomain(java.util.Set<T> set)
set
- the base setpublic Domain union(Domain other)
Domain
public Domain merge(Domain other)
Domain
public Domain intersect(Domain other)
Domain
public Domain diffStrong(Domain other)
Domain
diffStrong
in interface Domain
other
- the domain to be subtracted.public Domain diffWeak(Domain other)
Domain
public void kill(java.util.Set<Symbol> vars)
Domain
public boolean equals(Domain other)
Domain
public java.lang.String toString()
toString
in class java.util.AbstractCollection<T>