public class SetSignature<T> extends Signature implements java.util.Collection<T>
| Constructor and Description |
|---|
SetSignature()
Creates a empty new set signature.
|
SetSignature(java.util.Collection<? extends T> formulas)
Creates a new set signature with the given set of formulas.
|
SetSignature(T f)
Creates a new set signature with the single given formula.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
addSignature(Signature other)
Adds the elements of the given signature to this signature.
|
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isOverlappingSignature(Signature other)
Checks whether this signature has common elements with the
given signature, i.e.
|
boolean |
isSubSignature(Signature other)
Checks whether this signature is a sub-signature of the
given signature, i.e.
|
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
java.lang.String |
toString() |
private java.util.Set<T> formulas
public SetSignature()
public SetSignature(T f)
f - a formula.public SetSignature(java.util.Collection<? extends T> formulas)
formulas - a collection of formulas.public boolean isSubSignature(Signature other)
SignatureisSubSignature in class Signatureother - a signature.public boolean isOverlappingSignature(Signature other)
SignatureisOverlappingSignature in class Signatureother - a signature.public void addSignature(Signature other)
SignatureaddSignature in class Signatureother - a signature.public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>public void clear()
clear in interface java.util.Collection<T>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>public boolean isEmpty()
isEmpty in interface java.util.Collection<T>public java.util.Iterator<T> iterator()
public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>public int size()
size in interface java.util.Collection<T>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>public <S> S[] toArray(S[] a)
toArray in interface java.util.Collection<T>public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString in class java.lang.Object