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 @@
abstract class MultiSet {

/*
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.
*/
abstract boolean add(Object item);
abstract boolean remove(Object item);
abstract boolean contains(Object item);
abstract boolean is_empty(Object item);
abstract int count(Object item);
abstract int size();
}