(T t)
| 17 | class MySet<T> implements ISet<T> { |
| 18 | private final ArrayList<T> store = new ArrayList<>(); |
| 19 | @Override |
| 20 | public void Push(T t) throws IllegalArgumentException { |
| 21 | if (t == null) |
| 22 | throw new IllegalArgumentException(); |
| 23 | if (store.stream().noneMatch(e -> e.equals(t))) |
| 24 | store.add(t); |
| 25 | } |
| 26 | |
| 27 | @Override |
| 28 | public T Pop() throws NoSuchElementException { |
no test coverage detected