public class SetSignature<T> extends Signature implements Collection<T>
| Constructor and Description |
|---|
SetSignature()
Creates a empty new set signature.
|
SetSignature(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(Collection<? extends T> c) |
void |
addSignature(Signature other)
Adds the elements of the given signature to this signature.
|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(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.
|
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<S> S[] |
toArray(S[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streampublic SetSignature()
public SetSignature(T f)
f - a formula.public SetSignature(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 add(T e)
add in interface Collection<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>public void clear()
clear in interface Collection<T>public boolean contains(Object o)
contains in interface Collection<T>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>public boolean remove(Object o)
remove in interface Collection<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>public int size()
size in interface Collection<T>public Object[] toArray()
toArray in interface Collection<T>public <S> S[] toArray(S[] a)
toArray in interface Collection<T>public int hashCode()
hashCode in interface Collection<T>hashCode in class Signaturepublic boolean equals(Object obj)
equals in interface Collection<T>equals in class SignatureCopyright © 2018. All rights reserved.