/external/guava/guava-gwt/src/com/google/common/collect/ |
H A D | Multiset_CustomFieldSerializerBase.java | 47 SerializationStreamReader reader, Multiset<Object> multiset) 53 multiset.add(element, count); 55 return multiset; 46 populate( SerializationStreamReader reader, Multiset<Object> multiset) argument
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | HashMultisetTest.java | 39 Multiset<String> multiset = HashMultiset.create(); 40 multiset.add("foo", 2); 41 multiset.add("bar"); 42 assertEquals(3, multiset.size()); 43 assertEquals(2, multiset.count("foo")); 47 Multiset<String> multiset = HashMultiset.create(50); 48 multiset.add("foo", 2); 49 multiset.add("bar"); 50 assertEquals(3, multiset.size()); 51 assertEquals(2, multiset 73 MultisetHolder(Multiset<?> multiset) argument [all...] |
H A D | ConcurrentHashMultisetBasherTest.java | 40 * existing multiset values. 65 final ConcurrentHashMultiset<String> multiset = new ConcurrentHashMultiset<String>(map); 74 futures.add(pool.submit(new MutateTask(multiset, keys))); 88 return multiset.count(key); 103 private final ConcurrentHashMultiset<String> multiset; field in class:ConcurrentHashMultisetBasherTest.MutateTask 107 private MutateTask(ConcurrentHashMultiset<String> multiset, ImmutableList<String> keys) { argument 108 this.multiset = multiset; 124 multiset.add(key, delta); 130 int oldValue = multiset [all...] |
H A D | ConcurrentHashMultisetTest.java | 55 ConcurrentHashMultiset<String> multiset; field in class:ConcurrentHashMultisetTest 63 multiset = new ConcurrentHashMultiset<String>(backingMap); 73 assertEquals(COUNT, multiset.count(KEY)); 81 assertEquals(0, multiset.count(KEY)); 90 assertEquals(INITIAL_COUNT, multiset.add(KEY, 0)); 101 assertEquals(0, multiset.add(KEY, COUNT)); 113 assertEquals(INITIAL_COUNT, multiset.add(KEY, COUNT_TO_ADD)); 126 multiset.add(KEY, COUNT_TO_ADD); 167 assertEquals(multiset.add(KEY, 3), 12); 178 assertEquals(INITIAL_COUNT, multiset [all...] |
H A D | AbstractMultisetTest.java | 52 * Validates that multiset size returned by {@code size()} is the same as the 53 * size generated by summing the counts of all multiset entries. 55 protected void assertSize(Multiset<String> multiset) { argument 57 for (Multiset.Entry<String> entry : multiset.entrySet()) { 60 assertEquals((int) Math.min(size, Integer.MAX_VALUE), multiset.size());
|
/external/guava/guava/src/com/google/common/collect/ |
H A D | Serialization.java | 38 * Reads a count corresponding to a serialized map, multiset, or multimap. It 41 * multiset serialized by {@link 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 of 119 Multiset<E> multiset, ObjectInputStream stream) 122 populateMultiset(multiset, stream, distinctElements); 126 * Populates a multiset b 104 writeMultiset( Multiset<E> multiset, ObjectOutputStream stream) argument 118 populateMultiset( Multiset<E> multiset, ObjectInputStream stream) argument 130 populateMultiset( Multiset<E> multiset, ObjectInputStream stream, int distinctElements) argument [all...] |
H A D | AbstractMultiset.java | 33 * interface. A new multiset implementation can be created easily by extending 36 * {@link #remove(Object, int)} to enable modifications to the 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 194 * <p>This implementation returns {@code true} if {@code object} is a multiset
|
H A D | ConcurrentHashMultiset.java | 44 * A multiset that supports concurrent modifications and that provides atomic versions of most 90 * @param elements the elements that the multiset should contain 93 ConcurrentHashMultiset<E> multiset = ConcurrentHashMultiset.create(); 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 and 142 * Returns the number of occurrences of {@code element} in this multiset. 170 * <p>If the data in the multiset i 527 @Override ConcurrentHashMultiset<E> multiset() { method in class:ConcurrentHashMultiset.EntrySet [all...] |
H A D | ForwardingMultiset.java | 30 * A multiset which forwards all its method calls to another multiset. 32 * backing multiset as desired per the <a 252 Multiset<E> multiset() { method in class:ForwardingMultiset.StandardElementSet
|
H A D | SortedMultisets.java | 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() { 166 @Override Multiset<E> multiset() { [all...] |
H A D | Constraints.java | 320 * Returns a constrained view of the specified multiset, using the specified 321 * constraint. Any operations that add new elements to the multiset will call 325 * <p>The returned multiset is not serializable. 327 * @param multiset the multiset to constrain 329 * @return a constrained view of the multiset 332 Multiset<E> multiset, Constraint<? super E> constraint) { 333 return new ConstrainedMultiset<E>(multiset, constraint); 331 constrainedMultiset( Multiset<E> multiset, Constraint<? super E> constraint) argument
|
H A D | ImmutableMultiset.java | 37 * An immutable hash-based multiset. Does not permit null elements. 41 * multiset contains multiple instances of an element, those instances are 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. 118 * Returns an immutable multiset containing the given elements, in order. 134 * Returns an immutable multiset containin 202 copyOfInternal( Multiset<? extends E> multiset) argument 365 transient final ImmutableMultiset<E> multiset; field in class:ImmutableMultiset.EntrySet 367 EntrySet(ImmutableMultiset<E> multiset) argument 443 final ImmutableMultiset<E> multiset; field in class:ImmutableMultiset.EntrySet.EntrySetSerializedForm 445 EntrySetSerializedForm(ImmutableMultiset<E> multiset) argument 461 SerializedForm(Multiset<?> multiset) argument [all...] |
H A D | 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 containin 578 SerializedForm(SortedMultiset<?> multiset) argument [all...] |
H A D | Multisets.java | 57 * Returns an unmodifiable view of the specified multiset. Query operations on 58 * the returned multiset "read through" to the specified multiset, and 59 * attempts to modify the returned multiset result in an 62 * <p>The returned multiset will be serializable if the specified multiset is 65 * @param multiset the multiset for which an unmodifiable view is to be 67 * @return an unmodifiable view of the multiset 70 Multiset<? extends E> multiset) { 69 unmodifiableMultiset( Multiset<? extends E> multiset) argument 87 unmodifiableMultiset( ImmutableMultiset<E> multiset) argument 702 equalsImpl(Multiset<?> multiset, @Nullable Object object) argument 804 abstract Multiset<E> multiset(); method in class:Multisets.ElementSet 847 abstract Multiset<E> multiset(); method in class:Multisets.EntrySet 877 iteratorImpl(Multiset<E> multiset) argument 883 private final Multiset<E> multiset; field in class:Multisets.MultisetIteratorImpl 892 MultisetIteratorImpl( Multiset<E> multiset, Iterator<Entry<E>> entryIterator) argument 934 sizeImpl(Multiset<?> multiset) argument 967 copyHighestCountFirst(Multiset<E> multiset) argument [all...] |
H A D | AbstractMultimap.java | 990 private transient Multiset<K> multiset; field in class:AbstractMultimap 994 Multiset<K> result = multiset; 996 return multiset = new Multimaps.Keys<K, V>() {
|
H A D | Multimaps.java | 1901 @Override Multiset<K> multiset() { method in class:Multimaps.Keys.KeysEntrySet
|
H A D | Synchronized.java | 405 static <E> Multiset<E> multiset( argument 406 Multiset<E> multiset, @Nullable Object mutex) { 407 if (multiset instanceof SynchronizedMultiset || 408 multiset instanceof ImmutableMultiset) { 409 return multiset; 411 return new SynchronizedMultiset<E>(multiset, mutex); 661 keys = multiset(delegate().keys(), mutex);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
H A D | UnmodifiableCollectionTests.java | 190 * Verifies that a multiset is immutable. 192 * <p>A multiset is considered immutable if: 197 * multiset throw UnsupportedOperationException when those mutators 201 * @param multiset the presumed-immutable multiset 203 * {@code multiset}. {@code multiset} may or may not have {@code 206 public static <E> void assertMultisetIsUnmodifiable(Multiset<E> multiset, argument 208 Multiset<E> copy = LinkedHashMultiset.create(multiset); 209 assertCollectionsAreEquivalent(multiset, cop [all...] |
H A D | MultisetNavigationTester.java | 251 void expectAddFailure(SortedMultiset<E> multiset, Entry<E> entry) { argument 253 multiset.add(entry.getElement(), entry.getCount()); 258 multiset.add(entry.getElement()); 263 multiset.addAll(Collections.singletonList(entry.getElement())); 268 void expectRemoveZero(SortedMultiset<E> multiset, Entry<E> entry) { argument 269 assertEquals(0, multiset.remove(entry.getElement(), entry.getCount())); 270 assertFalse(multiset.remove(entry.getElement())); 271 assertFalse(multiset.elementSet().remove(entry.getElement())); 274 void expectSetCountFailure(SortedMultiset<E> multiset, Entry<E> entry) { argument 276 multiset 438 testEmptyRangeSubMultiset(SortedMultiset<E> multiset) argument 450 testEmptyRangeSubMultisetSupportingAdd(SortedMultiset<E> multiset) argument 515 subMultiset(SortedMultiset<E> multiset, List<Entry<E>> entries, int targetEntry) argument [all...] |
/external/stlport/stlport/stl/ |
H A D | _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(_InputIterato 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/ |
H A D | ptrspec_test.cpp | 62 TEST_INSTANCIATE_CONTAINER(multiset); variable
|
/external/stlport/stlport/stl/pointers/ |
H A D | _set.h | 304 class multiset class in inherits:__stlport_class 306 : public __stlport_class<multiset<_Key, _Compare, _Alloc> > 320 typedef multiset<_Key, _Compare, _Alloc> _Self; 360 _Rep_type _M_t; // red-black tree representing multiset 376 multiset() : _M_t(_Compare(), _StorageTypeAlloc()) {} function in class:multiset 377 explicit multiset(const _Compare& __comp, function in class:multiset 383 multiset(_InputIterator __first, _InputIterator __last) function in class:multiset 395 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 407 multiset(_InputIterator __first, _InputIterator __last, function in class:multiset 420 multiset(cons function in class:multiset 426 multiset(const value_type* __first, const value_type* __last, function in class:multiset 434 multiset(const_iterator __first, const_iterator __last) function in class:multiset 438 multiset(const_iterator __first, const_iterator __last, function in class:multiset 445 multiset(const _Self& __x) function in class:multiset 454 multiset(__move_source<_Self> src) function in class:multiset [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | Multimaps.java | 1812 @Override Multiset<K> multiset() { method in class:Multimaps.Keys.KeysEntrySet
|
H A D | Synchronized.java | 392 static <E> Multiset<E> multiset( argument 393 Multiset<E> multiset, @Nullable Object mutex) { 394 if (multiset instanceof SynchronizedMultiset || 395 multiset instanceof ImmutableMultiset) { 396 return multiset; 398 return new SynchronizedMultiset<E>(multiset, mutex); 648 keys = multiset(delegate().keys(), mutex);
|