Class MinimalSet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.testing.MinimalCollection<E>
-
- com.google.common.collect.testing.MinimalSet<E>
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
@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.- Author:
- Regina O'Dell
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.google.common.collect.testing.MinimalCollection
addAll, clear, contains, containsAll, iterator, ofClassAndContents, removeAll, retainAll, size, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
of
public static <E> MinimalSet<E> of(E... contents)
-
from
public static <E> MinimalSet<E> from(Collection<? extends E> contents)
-
ofClassAndContents
public static <E> MinimalSet<E> ofClassAndContents(Class<? super E> type, E[] emptyArrayForContents, Iterable<? extends E> contents)
-
-