Lines Matching refs:values
46 * a multimap as a map that associates each key with a collection of values. All
51 * #createCollection()}, which creates an empty collection of values for a key.
56 * to create the collection of values for that key. The subclass should not call
63 * through the keys and values in sorted order.
65 * <p>Keys and values may be null, as long as the underlying collection classes
91 * The map variable contains the collection of values associated with each
93 * contain any values for that key, a new collection generated by
95 * remains in the map as long as the multimap has any values for the key. If
96 * all values for the key are removed, the key and collection are removed
102 * empty, the multimap may contain subsequently added values for that key. To
114 * values
126 for (Collection<V> values : map.values()) {
127 checkArgument(!values.isEmpty());
128 totalSize += values.size();
133 * Creates the collection of values for a single key.
141 * @return an empty collection of values
146 * Creates the collection of values for an explicitly provided key. By
151 * @param key key to associate with values in the collection
152 * @return an empty collection of values
177 for (Collection<V> collection : map.values()) {
231 public boolean putAll(@Nullable K key, Iterable<? extends V> values) {
232 if (!values.iterator().hasNext()) {
239 if (values instanceof Collection) {
241 Collection<? extends V> c = (Collection<? extends V>) values;
244 for (V value : values) {
267 @Nullable K key, Iterable<? extends V> values) {
268 Iterator<? extends V> iterator = values.iterator();
322 for (Collection<V> collection : map.values()) {
345 * Generates a decorated collection that remains consistent with the values in
370 * Collection decorator that stays in sync with the multimap values for a key.
375 * multimap values for a given key. Its delegate is a value in {@link
380 * <p>A subcollection, such as a sublist, contains some of the values for a
382 * all values for the key. The subcollection {@code refreshIfEmpty}, {@code
402 * If the delegate collection is empty, but the multimap has values for the
629 /** Set decorator that stays in sync with the multimap values for a key. */
637 * SortedSet decorator that stays in sync with the multimap values for a key.
686 /** List decorator that stays in sync with the multimap values for a key. */
813 * List decorator that stays in sync with the multimap values for a key and
1049 * Removes all values for the provided key. Unlike {@link #removeAll}, it
1121 * <p>The iterator generated by the returned collection traverses the values
1122 * for one key, followed by the values of a second key, and so on.
1124 public Collection<V> values() {
1126 return (result == null) ? valuesCollection = new Values() : result;
1129 private class Values extends AbstractCollection<V> {
1148 /** Iterator across all values. */
1172 * <p>The iterator generated by the returned collection traverses the values
1173 * for one key, followed by the values of a second key, and so on.
1223 * entries().iterator()} and {@code values().iterator()}. The default
1224 * behavior, which traverses the values for one key, the values for a second