Lines Matching refs:set
44 * Associates the specified key with a set of values. If the map previously
45 * contained a mapping for the key, the value is added to the set.
47 * @param value value to be added to a set that is associated with the specified key
48 * @return the set that is associated with the specified key.
53 Set<V> set = map.computeIfAbsent(key, k -> new HashSet<>());
54 set.add(value);
55 return set;
61 * Maps a key to a value in a set that is associated with the specified key.
62 * The mapping is performed by evaluating whether an item in the set equals
66 * @param value value in a set that is associated with the specified key
67 * @return the item in the set if a match is found.
71 final Set<V> set = map.get(key);
72 if (set != null) {
73 for (V v : set) {
83 * Makes the MultiHashtable unmodifiable. This method allows modules to set the table