/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableMultisetTest.java | 59 @Override protected Multiset<String> create(String[] elements) { 70 @Override protected Multiset<String> create(String[] elements) { 95 Multiset<String> multiset = ImmutableMultiset.of(); local 96 assertTrue(multiset.isEmpty()); 100 Multiset<String> multiset = ImmutableMultiset.of("a"); local 101 assertEquals(HashMultiset.create(asList("a")), multiset); 105 Multiset<String> multiset = ImmutableMultiset.of("a", "b") local 110 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c"); local 115 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d"); local 120 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e"); local 126 Multiset<String> multiset = ImmutableMultiset.of( local 133 Multiset<String> multiset = ImmutableMultiset.of( local 142 Multiset<String> multiset = ImmutableMultiset.copyOf(array); local 148 Multiset<String> multiset = ImmutableMultiset.copyOf(array); local 154 Multiset<String[]> multiset = ImmutableMultiset.<String[]>of(array); local 171 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local 177 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local 183 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local 197 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local 203 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local 209 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local 223 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local 229 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local 235 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local 258 Multiset<String> multiset = ImmutableMultiset.copyOf(iterable); local 279 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local 291 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local 301 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local 311 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local 318 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local 328 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local 447 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "a"); local 452 ImmutableMultiset<String> multiset local 462 ImmutableMultiset<String> multiset local [all...] |
SimpleAbstractMultisetTest.java | 20 import com.google.common.collect.Multiset.Entry; 37 @Override protected <E> Multiset<E> create() { 43 Multiset<String> multiset = new NoRemoveMultiset<String>() { local 52 multiset.addAll(adds); 57 Multiset<String> multiset = new NoRemoveMultiset<String>(); local 58 multiset.add("a"); 60 multiset.remove("a"); 63 assertTrue(multiset.contains("a")) [all...] |
AbstractMultimapTest.java | 642 Multiset<String> multiset = multimap.keys(); local 643 assertEquals(3, multiset.count("foo")); 644 assertEquals(1, multiset.count(nullKey())); 645 ASSERT.that(multiset.elementSet()).hasContentsAnyOrder("foo", nullKey()); 646 assertEquals(2, multiset.entrySet().size()); 647 assertEquals(4, multiset.size()); 649 Set<Multiset.Entry<String>> entries = multimap.keys().entrySet(); 654 Multiset<String> foo3null1 = 656 assertEquals(foo3null1, multiset); 681 Multiset<String> multiset = multimap.keys(); local 699 Multiset<String> multiset = multimap.keys(); local 710 Multiset<String> multiset = multimap.keys(); local [all...] |
ImmutableSortedMultisetTest.java | 56 protected Multiset<String> create(String[] elements) { 70 protected Multiset<String> create(String[] elements) { 102 Multiset<String> multiset = ImmutableSortedMultiset.of(); local 103 assertTrue(multiset.isEmpty()); 107 Multiset<String> multiset = ImmutableSortedMultiset.of("a"); local 108 assertEquals(HashMultiset.create(asList("a")), multiset); 112 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b") local 117 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c"); local 122 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d"); local 127 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e"); local 132 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f"); local 137 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f", "g"); local 143 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); local 149 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); local 163 Multiset<String[]> multiset = ImmutableSortedMultiset.orderedBy(comparator).add(array).build(); local 180 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local 186 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local 192 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local 206 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local 212 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local 218 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local 232 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); local 238 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); local 244 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); local 268 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterable); local 289 ImmutableSortedMultiset<String> multiset = local 297 ImmutableSortedMultiset<String> multiset = local 305 ImmutableSortedMultiset<String> multiset = local 312 ImmutableSortedMultiset<String> multiset = local 318 ImmutableSortedMultiset<String> multiset = local 325 ImmutableSortedMultiset<String> multiset = local 440 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "a"); local 445 ImmutableSortedMultiset<String> multiset = ImmutableSortedMultiset.of("a", "a", "b", "b", "b"); local [all...] |
ForwardingMultisetTest.java | 45 private final Multiset<T> backingCollection; 47 StandardImplForwardingMultiset(Multiset<T> backingMultiset) { 51 @Override protected Multiset<T> delegate() { 139 protected Multiset<String> forward; 148 @Override protected Multiset<String> create(String[] elements) { 159 @Override protected Multiset<String> create(String[] elements) { 171 * Returns a Multiset that throws an exception on any attempt to use a 176 final Multiset<String> inner = 179 @Override protected Multiset<String> delegate() { 275 final Multiset<String> multiset = createProxyInstance(Multiset.class) local [all...] |
/external/guava/guava/src/com/google/common/collect/ |
AbstractMultiset.java | 32 * This class provides a skeletal implementation of the {@link Multiset} 33 * interface. A new multiset implementation can be created easily by extending 34 * this class and implementing the {@link Multiset#entrySet()} method, plus 36 * {@link #remove(Object, int)} to enable modifications to the multiset. 39 * the set returned by {@link Multiset#entrySet()}, as do many methods acting on 48 implements Multiset<E> { 114 * is itself a {@link Multiset}. 146 * Creates a new instance of this multiset's element set, which will be 155 Multiset<E> multiset() { method in class:AbstractMultiset.ElementSet 172 @Override Multiset<E> multiset() { method in class:AbstractMultiset.EntrySet [all...] |
ConcurrentHashMultiset.java | 44 * A multiset that supports concurrent modifications and that provides atomic versions of most 45 * {@code Multiset} operations (exceptions where noted). Null elements are not supported. 88 * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}. 90 * @param elements the elements that the multiset should contain 93 ConcurrentHashMultiset<E> multiset = ConcurrentHashMultiset.create(); local 94 Iterables.addAll(multiset, elements); 95 return multiset; 104 * multiset do not count as map updates at all, since we're usually just mutating the value 109 * <p>The returned multiset is serializable but any serialization caveats 130 * @param countMap backing map for storing the elements in the multiset an [all...] |
ForwardingMultiset.java | 30 * A multiset which forwards all its method calls to another multiset. 32 * backing multiset as desired per the <a 53 implements Multiset<E> { 58 @Override protected abstract Multiset<E> delegate(); 235 * A sensible implementation of {@link Multiset#elementSet} in terms of the 252 Multiset<E> multiset() { method in class:ForwardingMultiset.StandardElementSet
|
SortedIterables.java | 21 import com.google.common.collect.Multiset.Entry; 82 if (elements instanceof Multiset) { 83 elements = ((Multiset<E>) elements).elementSet(); 119 * Returns a collection of multiset entries representing the counts of the distinct elements, in 122 public static <E> Collection<Multiset.Entry<E>> sortedCounts( 124 TreeMultiset<E> multiset = TreeMultiset.create(comparator); local 125 Iterators.addAll(multiset, elements); 126 return multiset.entrySet(); 130 * Returns a collection of multiset entries representing the counts of the distinct elements, in 133 public static <E> Collection<Multiset.Entry<E>> sortedCounts 136 Multiset<E> multiset = (Multiset<E>) elements; local 182 TreeMultiset<E> multiset = TreeMultiset.create(comparator); local [all...] |
SortedMultisets.java | 20 import com.google.common.collect.Multiset.Entry; 44 @Override abstract SortedMultiset<E> multiset(); method in class:SortedMultisets.ElementSet 47 return multiset().comparator(); 51 return multiset().subMultiset(fromElement, BoundType.CLOSED, toElement, 56 return multiset().headMultiset(toElement, BoundType.OPEN).elementSet(); 60 return multiset().tailMultiset(fromElement, BoundType.CLOSED) 65 return getElementOrThrow(multiset().firstEntry()); 69 return getElementOrThrow(multiset().lastEntry()); 81 * A skeleton implementation of a descending multiset. Only needs 105 @Override SortedMultiset<E> multiset() { [all...] |
ImmutableMultiset.java | 22 import com.google.common.collect.Multiset.Entry; 37 * An immutable hash-based multiset. Does not permit null elements. 41 * multiset contains multiple instances of an element, those instances are 52 implements Multiset<E> { 55 * Returns the empty immutable multiset. 63 * Returns an immutable multiset containing a single element. 74 * Returns an immutable multiset containing the given elements, in order. 85 * Returns an immutable multiset containing the given elements, in order. 96 * Returns an immutable multiset containing the given elements, in order. 107 * Returns an immutable multiset containing the given elements, in order 191 Multiset<? extends E> multiset = (elements instanceof Multiset) local 239 Multiset<E> multiset = LinkedHashMultiset.create(); local 365 transient final ImmutableMultiset<E> multiset; field in class:EntrySet 443 final ImmutableMultiset<E> multiset; field in class:EntrySet.EntrySetSerializedForm 474 LinkedHashMultiset<Object> multiset = local 601 Multiset<? extends E> multiset = Multisets.cast(elements); local [all...] |
ImmutableSortedMultiset.java | 42 * {@link #subMultiset} methods share the same array as the original multiset, preventing that 65 * correctly if an element is modified after being placed in the multiset. For this reason, and to 85 * Returns the empty immutable sorted multiset. 93 * Returns an immutable sorted multiset containing a single element. 101 * Returns an immutable sorted multiset containing the given elements sorted by their natural 112 * Returns an immutable sorted multiset containing the given elements sorted by their natural 123 * Returns an immutable sorted multiset containing the given elements sorted by their natural 135 * Returns an immutable sorted multiset containing the given elements sorted by their natural 147 * Returns an immutable sorted multiset containing the given elements sorted by their natural 169 * Returns an immutable sorted multiset containing the given elements sorted by their natura 282 ImmutableSortedMultiset<E> multiset = (ImmutableSortedMultiset<E>) iterable; local [all...] |
Serialization.java | 38 * Reads a count corresponding to a serialized map, multiset, or multimap. It 41 * multiset serialized by {@link 42 * #writeMultiset(Multiset, ObjectOutputStream)}, or the number of distinct 97 * Stores the contents of a multiset in an output stream, as part of 105 Multiset<E> multiset, ObjectOutputStream stream) throws IOException { 106 int entryCount = multiset.entrySet().size(); 108 for (Multiset.Entry<E> entry : multiset.entrySet()) { 115 * Populates a multiset by reading an input stream, as part o [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/ |
stl_multiset.h | 0 // Multiset implementation -*- C++ -*- 78 * keys). For a @c multiset<Key> the key_type and value_type are Key. 83 * multiset; the distinction is made entirely in how the tree functions are 88 class multiset class 133 multiset() function in class:multiset 137 * @brief Creates a %multiset with no elements. 142 multiset(const _Compare& __comp, function in class:multiset 147 * @brief Builds a %multiset from a range. 151 * Create a %multiset consisting of copies of the elements from 156 multiset(_InputIterator __first, _InputIterator __last function in class:multiset 172 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 185 multiset(const multiset& __x) function in class:multiset 210 multiset(initializer_list<value_type> __l, function in class:multiset [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/profile/ |
multiset.h | 1 // Profiling multiset implementation -*- C++ -*- 25 /** @file profile/multiset.h 38 /// Class std::multiset wrapper with performance instrumentation. 41 class multiset class in namespace:__profile 42 : public _GLIBCXX_STD_C::multiset<_Key, _Compare, _Allocator> 44 typedef _GLIBCXX_STD_C::multiset<_Key, _Compare, _Allocator> _Base; 67 explicit multiset(const _Compare& __comp = _Compare(), function in class:__profile::multiset 72 multiset(_InputIterator __first, _InputIterator __last, function in class:__profile::multiset 77 multiset(const multiset& __x function in class:__profile::multiset 80 multiset(const _Base& __x) function in class:__profile::multiset 89 multiset(initializer_list<value_type> __l, function in class:__profile::multiset [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/ |
stl_multiset.h | 0 // Multiset implementation -*- C++ -*- 78 * keys). For a @c multiset<Key> the key_type and value_type are Key. 83 * multiset; the distinction is made entirely in how the tree functions are 88 class multiset class 133 multiset() function in class:multiset 137 * @brief Creates a %multiset with no elements. 142 multiset(const _Compare& __comp, function in class:multiset 147 * @brief Builds a %multiset from a range. 151 * Create a %multiset consisting of copies of the elements from 156 multiset(_InputIterator __first, _InputIterator __last function in class:multiset 172 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 185 multiset(const multiset& __x) function in class:multiset 210 multiset(initializer_list<value_type> __l, function in class:multiset [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.7/include/profile/ |
multiset.h | 1 // Profiling multiset implementation -*- C++ -*- 25 /** @file profile/multiset.h 38 /// Class std::multiset wrapper with performance instrumentation. 41 class multiset class in namespace:__profile 42 : public _GLIBCXX_STD_C::multiset<_Key, _Compare, _Allocator> 44 typedef _GLIBCXX_STD_C::multiset<_Key, _Compare, _Allocator> _Base; 67 explicit multiset(const _Compare& __comp = _Compare(), function in class:__profile::multiset 72 multiset(_InputIterator __first, _InputIterator __last, function in class:__profile::multiset 77 multiset(const multiset& __x function in class:__profile::multiset 80 multiset(const _Base& __x) function in class:__profile::multiset 89 multiset(initializer_list<value_type> __l, function in class:__profile::multiset [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
SortedMultisetTestSuiteBuilder.java | 23 import com.google.common.collect.Multiset; 177 SortedMultiset<E> multiset = local 183 multiset = 184 multiset.tailMultiset(firstInclusive, BoundType.CLOSED); 186 multiset = multiset.tailMultiset(firstExclusive, BoundType.OPEN); 190 multiset = multiset.headMultiset(lastInclusive, BoundType.CLOSED); 192 multiset = multiset.headMultiset(lastExclusive, BoundType.OPEN) [all...] |
/external/stlport/stlport/stl/ |
_set.h | 216 class multiset class in inherits:__stlport_class 218 : public __stlport_class<multiset<_Key, _Compare, _Alloc> > 221 typedef multiset<_Key, _Compare, _Alloc> _Self; 253 _Rep_type _M_t; // red-black tree representing multiset 258 explicit multiset(const _Compare& __comp = _Compare(), function in class:multiset 261 multiset() 263 explicit multiset(const _Compare& __comp) 265 multiset(const _Compare& __comp, const allocator_type& __a) 271 multiset(_InputIterator __first, _InputIterator __last) function in class:multiset 276 multiset(_InputIterator __first, _InputIterator __last function in class:multiset 282 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 287 multiset(const value_type* __first, const value_type* __last) function in class:multiset 291 multiset(const value_type* __first, const value_type* __last, function in class:multiset 296 multiset(const_iterator __first, const_iterator __last) function in class:multiset 300 multiset(const_iterator __first, const_iterator __last, function in class:multiset 306 multiset(const _Self& __x) : _M_t(__x._M_t) {} function in class:multiset 313 multiset(__move_source<_Self> src) function in class:multiset [all...] |
/external/stlport/test/unit/ |
ptrspec_test.cpp | 62 TEST_INSTANCIATE_CONTAINER(multiset); variable
|
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_set.h | 216 class multiset class in inherits:__stlport_class 218 : public __stlport_class<multiset<_Key, _Compare, _Alloc> > 221 typedef multiset<_Key, _Compare, _Alloc> _Self; 253 _Rep_type _M_t; // red-black tree representing multiset 258 explicit multiset(const _Compare& __comp = _Compare(), function in class:multiset 261 multiset() 263 explicit multiset(const _Compare& __comp) 265 multiset(const _Compare& __comp, const allocator_type& __a) 271 multiset(_InputIterator __first, _InputIterator __last) function in class:multiset 276 multiset(_InputIterator __first, _InputIterator __last function in class:multiset 282 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 287 multiset(const value_type* __first, const value_type* __last) function in class:multiset 291 multiset(const value_type* __first, const value_type* __last, function in class:multiset 296 multiset(const_iterator __first, const_iterator __last) function in class:multiset 300 multiset(const_iterator __first, const_iterator __last, function in class:multiset 306 multiset(const _Self& __x) : _M_t(__x._M_t) {} function in class:multiset 313 multiset(__move_source<_Self> src) function in class:multiset [all...] |
/ndk/tests/device/test-gnustl-full/unit/ |
ptrspec_test.cpp | 62 TEST_INSTANCIATE_CONTAINER(multiset); variable
|
/ndk/tests/device/test-stlport/unit/ |
ptrspec_test.cpp | 62 TEST_INSTANCIATE_CONTAINER(multiset); variable
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/include/c++/4.6/bits/ |
stl_multiset.h | 0 // Multiset implementation -*- C++ -*- 76 * keys). For a @c multiset<Key> the key_type and value_type are Key. 81 * multiset; the distinction is made entirely in how the tree functions are 86 class multiset class 131 multiset() function in class:multiset 135 * @brief Creates a %multiset with no elements. 140 multiset(const _Compare& __comp, function in class:multiset 145 * @brief Builds a %multiset from a range. 149 * Create a %multiset consisting of copies of the elements from 154 multiset(_InputIterator __first, _InputIterator __last function in class:multiset 170 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 183 multiset(const multiset& __x) function in class:multiset 194 multiset(multiset&& __x) function in class:multiset 207 multiset(initializer_list<value_type> __l, function in class:multiset [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/bits/ |
stl_multiset.h | 0 // Multiset implementation -*- C++ -*- 82 * keys). For a @c multiset<Key> the key_type and value_type are Key. 87 * multiset; the distinction is made entirely in how the tree functions are 92 class multiset class 137 multiset() function in class:multiset 141 * @brief Creates a %multiset with no elements. 146 multiset(const _Compare& __comp, function in class:multiset 151 * @brief Builds a %multiset from a range. 155 * Create a %multiset consisting of copies of the elements from 160 multiset(_InputIterator __first, _InputIterator __last function in class:multiset 176 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 189 multiset(const multiset& __x) function in class:multiset 214 multiset(initializer_list<value_type> __l, function in class:multiset [all...] |