/external/guava/guava-gwt/src/com/google/common/collect/ |
H A D | Multiset_CustomFieldSerializerBase.java | 34 SerializationStreamReader reader, Multiset<Object> multiset) 40 multiset.add(element, count); 42 return multiset; 33 populate( SerializationStreamReader reader, Multiset<Object> multiset) argument
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | HashMultisetTest.java | 71 Multiset<String> multiset = HashMultiset.create(); 72 multiset.add("foo", 2); 73 multiset.add("bar"); 74 assertEquals(3, multiset.size()); 75 assertEquals(2, multiset.count("foo")); 79 Multiset<String> multiset = HashMultiset.create(50); 80 multiset.add("foo", 2); 81 multiset.add("bar"); 82 assertEquals(3, multiset.size()); 83 assertEquals(2, multiset 105 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 | 89 Multiset<String> multiset = new ConcurrentHashMultiset<String>( 91 Collections.addAll(multiset, elements); 92 return multiset; 105 ConcurrentHashMultiset<String> multiset; field in class:ConcurrentHashMultisetTest 113 multiset = new ConcurrentHashMultiset<String>(backingMap); 123 assertEquals(COUNT, multiset.count(KEY)); 131 assertEquals(0, multiset.count(KEY)); 140 assertEquals(INITIAL_COUNT, multiset.add(KEY, 0)); 151 assertEquals(0, multiset.add(KEY, COUNT)); 163 assertEquals(INITIAL_COUNT, multiset [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | SortedMultisets.java | 47 private final SortedMultiset<E> multiset; field in class:SortedMultisets.ElementSet 49 ElementSet(SortedMultiset<E> multiset) { argument 50 this.multiset = multiset; 53 @Override final SortedMultiset<E> multiset() { method in class:SortedMultisets.ElementSet 54 return multiset; 58 return multiset().comparator(); 62 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); 66 return multiset().headMultiset(toElement, OPEN).elementSet(); 70 return multiset() [all...] |
H A D | ImmutableMultiset.java | 33 * An immutable hash-based multiset. Does not permit null elements. 37 * multiset contains multiple instances of an element, those instances are 58 * Returns the empty immutable multiset. 66 * Returns an immutable multiset containing a single element. 77 * Returns an immutable multiset containing the given elements, in order. 88 * Returns an immutable multiset containing the given elements, in order. 99 * Returns an immutable multiset containing the given elements, in order. 110 * Returns an immutable multiset containing the given elements, in order. 121 * Returns an immutable multiset containing the given elements, in order. 141 * Returns an immutable multiset containin 192 copyOfInternal( Multiset<? extends E> multiset) argument 405 final ImmutableMultiset<E> multiset; field in class:ImmutableMultiset.EntrySetSerializedForm 407 EntrySetSerializedForm(ImmutableMultiset<E> multiset) argument 420 SerializedForm(Multiset<?> multiset) argument [all...] |
H A D | Multimaps.java | 1462 @Override Multiset<K> multiset() { method in class:Multimaps.Keys.KeysEntrySet
|
H A D | Synchronized.java | 394 static <E> Multiset<E> multiset( argument 395 Multiset<E> multiset, @Nullable Object mutex) { 396 if (multiset instanceof SynchronizedMultiset || 397 multiset instanceof ImmutableMultiset) { 398 return multiset; 400 return new SynchronizedMultiset<E>(multiset, mutex); 650 keys = multiset(delegate().keys(), mutex);
|
/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 175 @Override Multiset<E> multiset() { method in class:AbstractMultiset.EntrySet 197 * <p>This implementation returns {@code true} if {@code object} is a multiset
|
H A D | ConcurrentHashMultiset.java | 46 * A multiset that supports concurrent modifications and that provides atomic versions of most 96 * @param elements the elements that the multiset should contain 99 ConcurrentHashMultiset<E> multiset = ConcurrentHashMultiset.create(); 100 Iterables.addAll(multiset, elements); 101 return multiset; 110 * multiset do not count as map updates at all, since we're usually just mutating the value 115 * <p>The returned multiset is serializable but any serialization caveats 136 * @param countMap backing map for storing the elements in the multiset and 148 * Returns the number of occurrences of {@code element} in this multiset. 161 * <p>If the data in the multiset i 533 @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 248 Multiset<E> multiset() { method in class:ForwardingMultiset.StandardElementSet
|
H A D | SortedMultisets.java | 50 private final SortedMultiset<E> multiset; field in class:SortedMultisets.ElementSet 52 ElementSet(SortedMultiset<E> multiset) { argument 53 this.multiset = multiset; 56 @Override final SortedMultiset<E> multiset() { method in class:SortedMultisets.ElementSet 57 return multiset; 61 return multiset().comparator(); 65 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); 69 return multiset().headMultiset(toElement, OPEN).elementSet(); 73 return multiset() 90 NavigableElementSet(SortedMultiset<E> multiset) argument [all...] |
H A D | ImmutableMultiset.java | 34 * An immutable hash-based multiset. Does not permit null elements. 38 * multiset contains multiple instances of an element, those instances are 59 * Returns the empty immutable multiset. 67 * Returns an immutable multiset containing a single element. 78 * Returns an immutable multiset containing the given elements, in order. 89 * Returns an immutable multiset containing the given elements, in order. 100 * Returns an immutable multiset containing the given elements, in order. 111 * Returns an immutable multiset containing the given elements, in order. 122 * Returns an immutable multiset containing the given elements, in order. 142 * Returns an immutable multiset containin 193 copyOfInternal( Multiset<? extends E> multiset) argument 416 final ImmutableMultiset<E> multiset; field in class:ImmutableMultiset.EntrySetSerializedForm 418 EntrySetSerializedForm(ImmutableMultiset<E> multiset) argument 431 SerializedForm(Multiset<?> multiset) argument [all...] |
H A D | ImmutableSortedMultiset.java | 43 * {@link #subMultiset} methods share the same array as the original multiset, preventing that 66 * correctly if an element is modified after being placed in the multiset. For this reason, and to 92 * Returns the empty immutable sorted multiset. 100 * Returns an immutable sorted multiset containing a single element. 111 * Returns an immutable sorted multiset containing the given elements sorted by their natural 122 * Returns an immutable sorted multiset containing the given elements sorted by their natural 133 * Returns an immutable sorted multiset containing the given elements sorted by their natural 145 * Returns an immutable sorted multiset containing the given elements sorted by their natural 157 * Returns an immutable sorted multiset containing the given elements sorted by their natural 173 * Returns an immutable sorted multiset containin 548 SerializedForm(SortedMultiset<E> multiset) argument [all...] |
H A D | Multisets.java | 60 * Returns an unmodifiable view of the specified multiset. Query operations on 61 * the returned multiset "read through" to the specified multiset, and 62 * attempts to modify the returned multiset result in an 65 * <p>The returned multiset will be serializable if the specified multiset is 68 * @param multiset the multiset for which an unmodifiable view is to be 70 * @return an unmodifiable view of the multiset 73 Multiset<? extends E> multiset) { 72 unmodifiableMultiset( Multiset<? extends E> multiset) argument 90 unmodifiableMultiset( ImmutableMultiset<E> multiset) argument 819 equalsImpl(Multiset<?> multiset, @Nullable Object object) argument 922 abstract Multiset<E> multiset(); method in class:Multisets.ElementSet 965 abstract Multiset<E> multiset(); method in class:Multisets.EntrySet 1009 iteratorImpl(Multiset<E> multiset) argument 1015 private final Multiset<E> multiset; field in class:Multisets.MultisetIteratorImpl 1024 MultisetIteratorImpl( Multiset<E> multiset, Iterator<Entry<E>> entryIterator) argument 1065 sizeImpl(Multiset<?> multiset) argument 1094 copyHighestCountFirst(Multiset<E> multiset) argument [all...] |
H A D | Multimaps.java | 1551 @Override Multiset<K> multiset() { method in class:Multimaps.Keys.KeysEntrySet
|
H A D | Synchronized.java | 410 static <E> Multiset<E> multiset( argument 411 Multiset<E> multiset, @Nullable Object mutex) { 412 if (multiset instanceof SynchronizedMultiset || 413 multiset instanceof ImmutableMultiset) { 414 return multiset; 416 return new SynchronizedMultiset<E>(multiset, mutex); 666 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/guava/guava-tests/benchmark/com/google/common/collect/ |
H A D | ConcurrentHashMultisetBenchmark.java | 54 private Multiset<Integer> multiset; field in class:ConcurrentHashMultisetBenchmark 59 multiset = implSupplier.get(); 109 multiset.add(key, delta); 125 multiset.add(key, delta); 127 multiset.remove(key, -delta); 146 return Synchronized.multiset(HashMultiset.<Integer>create(), null); 178 * Returns the number of occurrences of {@code element} in this multiset. 196 * <p>If the data in the multiset is modified by any other threads during this 239 * Adds a number of occurrences of the specified element to this multiset. 275 * multiset 474 @Override Multiset<E> multiset() { method in class:ConcurrentHashMultisetBenchmark.OldConcurrentHashMultiset.EntrySet [all...] |
/external/guava/guava-testlib/test/com/google/common/testing/ |
H A D | NullPointerTesterTest.java | 855 Multiset<String> multiset, 869 multiset, immutableMultiset, 843 checkDefaultValuesForTheseTypes( Gender gender, Integer integer, int i, String string, CharSequence charSequence, List<String> list, ImmutableList<Integer> immutableList, Map<String, Integer> map, ImmutableMap<String, String> immutableMap, Set<String> set, ImmutableSet<Integer> immutableSet, SortedSet<Number> sortedSet, ImmutableSortedSet<Number> immutableSortedSet, Multiset<String> multiset, ImmutableMultiset<Integer> immutableMultiset, Multimap<String, Integer> multimap, ImmutableMultimap<String, Integer> immutableMultimap, Table<String, Integer, Exception> table, ImmutableTable<Integer, String, Exception> immutableTable) argument
|
/external/owasp/sanitizer/distrib/lib/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |
/external/owasp/sanitizer/lib/guava-libraries/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |
/external/guice/lib/build/ |
H A D | guava-testlib-16.0.1.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ... |