Searched refs:MinimalSet (Results 1 – 12 of 12) sorted by relevance
23 import com.google.common.collect.testing.MinimalSet;41 getSet().equals(MinimalSet.from(getSampleElements()))); in testEquals_otherSetWithSameElements()51 getSet().equals(MinimalSet.from(elements))); in testEquals_otherSetWithDifferentElements()64 getSet().equals(MinimalSet.from(elements))); in testEquals_containingNull()71 Set<E> other = MinimalSet.from(elements); in testEquals_otherContainsNull()83 getSet().equals(MinimalSet.from(fewerElements))); in testEquals_smallerSet()90 getSet().equals(MinimalSet.from(moreElements))); in testEquals_largerSet()
22 import com.google.common.collect.testing.MinimalSet;90 assertFalse("A List should never equal a Set.", getList().equals(MinimalSet.from(getList()))); in testEquals_set()
34 public class MinimalSet<E> extends MinimalCollection<E> implements Set<E> { class37 public static <E> MinimalSet<E> of(E... contents) { in of()42 public static <E> MinimalSet<E> from(Collection<? extends E> contents) { in from()46 public static <E> MinimalSet<E> ofClassAndContents( in ofClassAndContents()54 return new MinimalSet<E>(type, setContents.toArray(emptyArrayForContents)); in ofClassAndContents()57 private MinimalSet(Class<? super E> type, E... contents) { in MinimalSet() method in MinimalSet
22 import com.google.common.collect.testing.MinimalSet;138 return new StandardImplForwardingSet<>(MinimalSet.of(elements)); in suite()
30 import com.google.common.collect.testing.MinimalSet;193 assertEquals(MinimalSet.from(map.entrySet()), map.entrySet()); in assertMoreInvariants()
33 import com.google.common.collect.testing.MinimalSet;224 assertEquals(MinimalSet.from(map.entrySet()), map.entrySet()); in assertMoreInvariants()
36 return MinimalSet.of(elements); in suite()