Skip to content

Instantly share code, notes, and snippets.

@uncoded-ro
Created January 12, 2020 06:49
Show Gist options
  • Save uncoded-ro/524e8b58116843c6da8ab0d7a9ad77b4 to your computer and use it in GitHub Desktop.
Save uncoded-ro/524e8b58116843c6da8ab0d7a9ad77b4 to your computer and use it in GitHub Desktop.
public interface Set extends Collection {
int size();
boolean isEmpty();
boolean contains(Object o);
Iterator<E> iterator();
Object[] toArray();
<T> T[] toArray(T[] a);
boolean add(E e);
boolean remove(Object o);
boolean containsAll(Collection<?> c);
boolean addAll(Collection<? extends E> c);
boolean retainAll(Collection<?> c);
boolean removeAll(Collection<?> c);
void clear();
boolean equals(Object o);
int hashCode();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment