Sets the content of this set to the same as other set.
(SetFact<E> other)
| 140 | * Sets the content of this set to the same as other set. |
| 141 | */ |
| 142 | public void set(SetFact<E> other) { |
| 143 | if (set instanceof GenericBitSet<E> s) { |
| 144 | s.setTo(other.set); |
| 145 | } else { |
| 146 | clear(); |
| 147 | union(other); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Creates and returns a copy of this fact. |