public class FormulaSetOnList extends java.util.LinkedList<Formula> implements _FormulaSet
| Constructor and Description |
|---|
FormulaSetOnList()
Builds an empty set of signed formulas.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(_FormulaSet other)
Add all the formulas in the specified set to this formula set.
|
int |
cardinality()
The number of elements in this set.
|
FormulaSetOnList |
clone()
Returns a fresh copy of this set.
|
boolean |
contains(Formula swff)
Returns
true if and only if this set contains the specified
formula. |
java.util.Collection<Formula> |
getAllFormulas()
Returns a collection containing all the formulas in this set or
null if this set is empty. |
Formula |
getFirst()
Returns the first formula in this set or
null if this set is
empty. |
boolean |
remove(Formula wff)
Returns the specified formula from this set.
|
Formula[] |
toArray()
Returns an array of formulas containing all of the formulas in this set.
|
java.lang.String |
toString() |
add, add, addAll, addAll, addFirst, addLast, clear, contains, descendingIterator, element, get, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArraycontainsAll, isEmpty, removeAll, retainAlladd, isEmpty, iteratorpublic FormulaSetOnList()
public java.util.Collection<Formula> getAllFormulas()
_FormulaSetnull if this set is empty.getAllFormulas in interface _FormulaSetnull if
this set is empty.public void addAll(_FormulaSet other)
_FormulaSetaddAll in interface _FormulaSetother - the set of formulas to add to this set.public boolean remove(Formula wff)
_FormulaSetremove in interface _FormulaSetwff - the formula to remove.true if this set contained the specified formula.public Formula getFirst()
_FormulaSetnull if this set is
empty.getFirst in interface java.util.Deque<Formula>getFirst in interface _FormulaSetgetFirst in class java.util.LinkedList<Formula>null if this
set is empty.public int cardinality()
_FormulaSetcardinality in interface _FormulaSetpublic boolean contains(Formula swff)
_FormulaSettrue if and only if this set contains the specified
formula.contains in interface _FormulaSetswff - the formula to search.true if and only if this set contains the specified
formula.public FormulaSetOnList clone()
_FormulaSetclone in interface _FormulaSetclone in class java.util.LinkedList<Formula>public Formula[] toArray()
_FormulaSettoArray in interface java.util.Collection<Formula>toArray in interface java.util.List<Formula>toArray in interface _FormulaSettoArray in class java.util.LinkedList<Formula>public java.lang.String toString()
toString in class java.util.AbstractCollection<Formula>