MCPcopy Create free account
hub / github.com/Freeze777/SDE-Interviewer-Notes / ISet

Interface ISet

CleanCode/src/test/java/FoodPandaTest.java:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import java.util.NoSuchElementException;
6
7interface 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
17class MySet<T> implements ISet<T> {
18 private final ArrayList<T> store = new ArrayList<>();

Callers

nothing calls this directly

Implementers 1

MySetCleanCode/src/test/java/FoodPandaTest.

Calls

no outgoing calls

Tested by

no test coverage detected