Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/MultiSet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
public abstract class MultiSet<T> {
// An abstract class representing the MultiSet ADT, which supports the
// add, remove, is_empty, count, and contains operations.
//
// This class itself does not handle how the underlying data is stored,
// so it just inherits Object.__init__.

public abstract boolean add(T item);
public abstract void remove(T item);
public abstract boolean contains(T item);
public abstract boolean isEmpty (T item);
public abstract Integer count(T item);
public abstract Integer size(T item);

}