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, sizepublic SetDomain()
public SetDomain(java.util.Set<T> set)
set - the base setpublic Domain union(Domain other)
Domainpublic Domain merge(Domain other)
Domainpublic Domain intersect(Domain other)
Domainpublic Domain diffStrong(Domain other)
DomaindiffStrong in interface Domainother - the domain to be subtracted.public Domain diffWeak(Domain other)
Domainpublic void kill(java.util.Set<Symbol> vars)
Domainpublic boolean equals(Domain other)
Domainpublic java.lang.String toString()
toString in class java.util.AbstractCollection<T>