Returns the set of all keys, each appearing once in the returned set. Returns a collection, which may contain duplicates, of all keys. Returns true if the multimap contains no key-value pairs. Returns a collection view of all values associated with a key. Returns a collection of all key-value pairs.Ĭompares the specified object with this multimap for equality. Returns true if the multimap contains the specified value for any Returns true if the multimap contains any values for the specified Returns true if the multimap contains the specified key-value pair. Removes all key-value pairs from the multimap. Returns a map view that associates each key with the corresponding values Since: 2 (imported from Google Collections Library) Author: Jared Levy Supported, those methods will throw an UnsupportedOperationException. Key to the value, and get will return a collection that includes theĪll methods that alter the multimap are optional, and the views returnedīy the multimap may or may not be modifiable. Supporting duplicates, the multimap will contain a single mapping from the ![]() Return a collection that includes the value twice. In multimaps allowingĭuplicates, the multimap will contain two mappings, and get will Key and value twice varies between implementations. In other words, the multimap contents after adding the same That are independent of subsequent multimap changes.ĭepending on the implementation, a multimap may or may not allow duplicate In contrast, replaceValues(K, ) and removeAll() return collections Of those collections, and updating the collections will change the multimap. If the multimap is modifiable, updating it can change the contents The methods get(K), keySet(), keys(), values(),Įntries(), and asMap() return collections that are views of the If you call put(K, V) twice, with the same keyīut different values, the multimap contains mappings from the key to both Interface Multimap Type Parameters: K - the type of keys maintained by this multimap V - the type of mapped values All Known Subinterfaces: ListMultimap, SetMultimap, SortedSetMultimap All Known Implementing Classes: ArrayListMultimap, ForwardingListMultimap, ForwardingMultimap, ForwardingSetMultimap, ForwardingSortedSetMultimap, HashMultimap, ImmutableListMultimap, ImmutableMultimap, ImmutableSetMultimap, LinkedHashMultimap, LinkedListMultimap, TreeMultimapĪ collection similar to a Map, but which may associate multiple SUMMARY: NESTED | FIELD | CONSTR | METHOD ![]() Multimap (Guava: Google Core Libraries for Java - r06)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |