| 5 | import java.util.NoSuchElementException; |
| 6 | |
| 7 | interface ISet<T> { |
| 8 | void Push(T t) throws IllegalArgumentException; |
| 9 | T Pop() throws NoSuchElementException; |
| 10 | T Remove(T t) throws NoSuchElementException, IllegalArgumentException; |
| 11 | ISet<T> Intersect(ISet<T> otherSet) throws IllegalArgumentException; |
| 12 | Iterable<T> Values(); |
| 13 | Iterable<T> OrderedValues(boolean firstToLast); |
| 14 | Integer Size(); |
| 15 | } |
| 16 | |
| 17 | class MySet<T> implements ISet<T> { |
| 18 | private final ArrayList<T> store = new ArrayList<>(); |
nothing calls this directly
no outgoing calls
no test coverage detected