@GwtCompatible public class MinimalSet<E> extends MinimalCollection<E> implements Set<E>
A simplistic set which implements the bare minimum so that it can be used in tests without relying on any specific Set implementations. Slow. Explicitly allows null elements so that they can be used in the testers.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
static <E> MinimalSet<E> |
from(Collection<? extends E> contents) |
int |
hashCode() |
static <E> MinimalSet<E> |
of(E... contents) |
static <E> MinimalSet<E> |
ofClassAndContents(Class<? super E> type,
E[] emptyArrayForContents,
Iterable<? extends E> contents) |
addAll, clear, contains, containsAll, iterator, ofClassAndContents, removeAll, retainAll, size, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic static <E> MinimalSet<E> of(E... contents)
public static <E> MinimalSet<E> from(Collection<? extends E> contents)
public static <E> MinimalSet<E> ofClassAndContents(Class<? super E> type, E[] emptyArrayForContents, Iterable<? extends E> contents)
public boolean equals(Object object)