1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_06) on Wed Aug 20 17:16:46 PDT 2008 -->
7 SetMultimap (Google Collections Library - snapshot-
20080820 (ALPHA))
10 <META NAME=
"keywords" CONTENT=
"com.google.common.collect.SetMultimap interface">
12 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../stylesheet.css" TITLE=
"Style">
14 <SCRIPT type=
"text/javascript">
15 function windowTitle()
17 parent.document.
title=
"SetMultimap (Google Collections Library - snapshot-20080820 (ALPHA))";
25 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME=
"navbar_top"><!-- --></A>
30 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
31 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
33 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
34 <A NAME=
"navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
36 <TR ALIGN=
"center" VALIGN=
"top">
37 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
38 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
39 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
40 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
47 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
53 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
54 <A HREF=
"../../../../com/google/common/collect/Serialization.html" title=
"class in com.google.common.collect"><B>PREV CLASS
</B></A>
55 <A HREF=
"../../../../com/google/common/collect/Sets.html" title=
"class in com.google.common.collect"><B>NEXT CLASS
</B></A></FONT></TD>
56 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
57 <A HREF=
"../../../../index.html?com/google/common/collect/SetMultimap.html" target=
"_top"><B>FRAMES
</B></A>
58 <A HREF=
"SetMultimap.html" target=
"_top"><B>NO FRAMES
</B></A>
59 <SCRIPT type=
"text/javascript">
62 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
74 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
75 SUMMARY:
NESTED
|
FIELD
|
CONSTR
|
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 DETAIL:
FIELD
|
CONSTR
|
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
80 <A NAME=
"skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
87 com.google.common.collect
</FONT>
89 Interface SetMultimap
<K,V
></H2>
91 <DT><B>All Superinterfaces:
</B> <DD><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></DD>
94 <DT><B>All Known Subinterfaces:
</B> <DD><A HREF=
"../../../../com/google/common/collect/SortedSetMultimap.html" title=
"interface in com.google.common.collect">SortedSetMultimap
</A><K,V
></DD>
97 <DT><B>All Known Implementing Classes:
</B> <DD><A HREF=
"../../../../com/google/common/collect/HashMultimap.html" title=
"class in com.google.common.collect">HashMultimap
</A>,
<A HREF=
"../../../../com/google/common/collect/LinkedHashMultimap.html" title=
"class in com.google.common.collect">LinkedHashMultimap
</A>,
<A HREF=
"../../../../com/google/common/collect/TreeMultimap.html" title=
"class in com.google.common.collect">TreeMultimap
</A></DD>
101 <DT><PRE>public interface
<B>SetMultimap
<K,V
></B><DT>extends
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></DL>
105 A
<code>Multimap
</code> that cannot hold duplicate key-value pairs. Adding a
106 key-value pair that's already in the multimap has no effect.
108 <p>The
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html#get(K)"><CODE>get(K)
</CODE></A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html#removeAll(java.lang.Object)"><CODE>removeAll(java.lang.Object)
</CODE></A>, and
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html#replaceValues(K, java.lang.Iterable)"><CODE>replaceValues(K, java.lang.Iterable<? extends V
>)
</CODE></A> methods
109 each return a
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util"><CODE>Set
</CODE></A> of values, while
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html#entries()"><CODE>entries()
</CODE></A> returns a
<code>Set
</code> of map entries. Though the method signature doesn't say so explicitly,
110 the map returned by
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html#asMap()"><CODE>asMap()
</CODE></A> has
<code>Set
</code> values.
115 <DT><B>Author:
</B></DT>
122 <!-- ========== METHOD SUMMARY =========== -->
124 <A NAME=
"method_summary"><!-- --></A>
125 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
126 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
127 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
128 <B>Method Summary
</B></FONT></TH>
130 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
131 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
132 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.html" title=
"class or interface in java.util">Map
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>>></CODE></FONT></TD>
133 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#asMap()">asMap
</A></B>()
</CODE>
136 Returns a map view that associates each key with the corresponding values
137 in the multimap.
</TD>
139 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
140 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
141 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html" title=
"class or interface in java.util">Map.Entry
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>>></CODE></FONT></TD>
142 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#entries()">entries
</A></B>()
</CODE>
145 Returns a collection of all key-value pairs.
</TD>
147 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
148 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
149 <CODE> boolean
</CODE></FONT></TD>
150 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#equals(java.lang.Object)">equals
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> obj)
</CODE>
153 Compares the specified object to this multimap for equality.
</TD>
155 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
156 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
157 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></FONT></TD>
158 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#get(K)">get
</A></B>(
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A> key)
</CODE>
161 Returns a collection view of all values associated with a key.
</TD>
163 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
164 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
165 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></FONT></TD>
166 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#removeAll(java.lang.Object)">removeAll
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key)
</CODE>
169 Removes all values associated with a given key.
</TD>
171 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
172 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
173 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></FONT></TD>
174 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#replaceValues(K, java.lang.Iterable)">replaceValues
</A></B>(
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A> key,
175 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html" title=
"class or interface in java.lang">Iterable
</A><? extends
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>> values)
</CODE>
178 Stores a collection of values with the same key, replacing any existing
179 values for that key.
</TD>
182 <A NAME=
"methods_inherited_from_class_com.google.common.collect.Multimap"><!-- --></A>
183 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
184 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
185 <TH ALIGN=
"left"><B>Methods inherited from interface com.google.common.collect.
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A></B></TH>
187 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
188 <TD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#clear()">clear
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#containsEntry(java.lang.Object, java.lang.Object)">containsEntry
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#containsKey(java.lang.Object)">containsKey
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#containsValue(java.lang.Object)">containsValue
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#hashCode()">hashCode
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#isEmpty()">isEmpty
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#keys()">keys
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#keySet()">keySet
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#put(K, V)">put
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(K, java.lang.Iterable)">putAll
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(com.google.common.collect.Multimap)">putAll
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#remove(java.lang.Object, java.lang.Object)">remove
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#size()">size
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#values()">values
</A></CODE></TD>
194 <!-- ============ METHOD DETAIL ========== -->
196 <A NAME=
"method_detail"><!-- --></A>
197 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
198 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
199 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
200 <B>Method Detail
</B></FONT></TH>
204 <A NAME=
"get(java.lang.Object)"><!-- --></A><A NAME=
"get(K)"><!-- --></A><H3>
207 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>> <B>get
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
208 <A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A> key)
</PRE>
210 <DD>Returns a collection view of all values associated with a key. If no
211 mappings in the multimap have the provided key, an empty collection is
214 <p>Changes to the returned collection will update the underlying multimap,
217 <p>Because a
<code>SetMultimap
</code> has unique values for a given key, this
218 method returns a
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util"><CODE>Set
</CODE></A>, instead of the
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util"><CODE>Collection
</CODE></A>
219 specified in the
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect"><CODE>Multimap
</CODE></A> interface.
222 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#get(K)">get
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></DL>
225 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to search for in multimap
226 <DT><B>Returns:
</B><DD>the collection of values that the key maps to
</DL>
231 <A NAME=
"removeAll(java.lang.Object)"><!-- --></A><H3>
234 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>> <B>removeAll
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
235 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key)
</PRE>
237 <DD>Removes all values associated with a given key.
239 <p>Because a
<code>SetMultimap
</code> has unique values for a given key, this
240 method returns a
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util"><CODE>Set
</CODE></A>, instead of the
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util"><CODE>Collection
</CODE></A>
241 specified in the
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect"><CODE>Multimap
</CODE></A> interface.
244 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#removeAll(java.lang.Object)">removeAll
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></DL>
247 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key of entries to remove from the multimap
248 <DT><B>Returns:
</B><DD>the collection of removed values, or an empty collection if no
249 values were associated with the provided key. The collection
250 <i>may
</i> be modifiable, but updating it will have no effect on the
256 <A NAME=
"replaceValues(java.lang.Object,java.lang.Iterable)"><!-- --></A><A NAME=
"replaceValues(K, java.lang.Iterable)"><!-- --></A><H3>
259 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>> <B>replaceValues
</B>(
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A> key,
260 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html" title=
"class or interface in java.lang">Iterable
</A><? extends
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>> values)
</PRE>
262 <DD>Stores a collection of values with the same key, replacing any existing
265 <p>Because a
<code>SetMultimap
</code> has unique values for a given key, this
266 method returns a
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util"><CODE>Set
</CODE></A>, instead of the
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util"><CODE>Collection
</CODE></A>
267 specified in the
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect"><CODE>Multimap
</CODE></A> interface.
269 <p>Any duplicates in
<code>values
</code> will be stored in the multimap once.
272 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#replaceValues(K, java.lang.Iterable)">replaceValues
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></DL>
275 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to store in the multimap
<DD><CODE>values
</CODE> - values to store in the multimap
276 <DT><B>Returns:
</B><DD>the collection of replaced values, or an empty collection if no
277 values were previously associated with the key. The collection
278 <i>may
</i> be modifiable, but updating it will have no effect on the
284 <A NAME=
"entries()"><!-- --></A><H3>
287 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html" title=
"class or interface in java.util">Map.Entry
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>>> <B>entries
</B>()
</PRE>
289 <DD>Returns a collection of all key-value pairs. Changes to the returned
290 collection will update the underlying multimap, and vice versa. The entries
291 collection does not support the
<code>add
</code> or
<code>addAll
</code> operations.
293 <p>Because a
<code>SetMultimap
</code> has unique values for a given key, this
294 method returns a
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util"><CODE>Set
</CODE></A>, instead of the
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util"><CODE>Collection
</CODE></A>
295 specified in the
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect"><CODE>Multimap
</CODE></A> interface.
298 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#entries()">entries
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></DL>
302 <DT><B>Returns:
</B><DD>collection of map entries consisting of key-value pairs
</DL>
307 <A NAME=
"asMap()"><!-- --></A><H3>
310 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.html" title=
"class or interface in java.util">Map
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>>> <B>asMap
</B>()
</PRE>
312 <DD>Returns a map view that associates each key with the corresponding values
313 in the multimap. Changes to the returned map, such as element removal,
314 will update the underlying multimap. The map does not support
315 <code>setValue()
</code> on its entries,
<code>put
</code>, or
<code>putAll
</code>.
317 <p>The collections returned by
<code>asMap().get(Object)
</code> have the same
318 behavior as those returned by
<A HREF=
"../../../../com/google/common/collect/Multimap.html#get(K)"><CODE>Multimap.get(K)
</CODE></A>.
320 <p>Though the method signature doesn't say so explicitly, the returned map
321 has
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util"><CODE>Set
</CODE></A> values.
324 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#asMap()">asMap
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE></DL>
328 <DT><B>Returns:
</B><DD>a map view from a key to its collection of values
</DL>
333 <A NAME=
"equals(java.lang.Object)"><!-- --></A><H3>
336 boolean
<B>equals
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
337 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> obj)
</PRE>
339 <DD>Compares the specified object to this multimap for equality.
341 <p>Two
<code>SetMultimap
</code> instances are equal if, for each key, they
342 contain the same values. Equality does not depend on the ordering of keys
346 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#equals(java.lang.Object)">equals
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">K
</A>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"type parameter in SetMultimap">V
</A>></CODE><DT><B>Overrides:
</B><DD><CODE><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title=
"class or interface in java.lang">equals
</A></CODE> in class
<CODE><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A></CODE></DL>
349 <DT><B>Parameters:
</B><DD><CODE>obj
</CODE> - the reference object with which to compare.
350 <DT><B>Returns:
</B><DD><code>true
</code> if this object is the same as the obj
351 argument;
<code>false
</code> otherwise.
<DT><B>See Also:
</B><DD><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title=
"class or interface in java.lang"><CODE>Object.hashCode()
</CODE></A>,
352 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Hashtable.html" title=
"class or interface in java.util"><CODE>Hashtable
</CODE></A></DL>
355 <!-- ========= END OF CLASS DATA ========= -->
359 <!-- ======= START OF BOTTOM NAVBAR ====== -->
360 <A NAME=
"navbar_bottom"><!-- --></A>
361 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
362 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
364 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
365 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
366 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
367 <TR ALIGN=
"center" VALIGN=
"top">
368 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
369 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
370 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
371 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
372 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
373 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
374 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
378 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
384 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
385 <A HREF=
"../../../../com/google/common/collect/Serialization.html" title=
"class in com.google.common.collect"><B>PREV CLASS
</B></A>
386 <A HREF=
"../../../../com/google/common/collect/Sets.html" title=
"class in com.google.common.collect"><B>NEXT CLASS
</B></A></FONT></TD>
387 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
388 <A HREF=
"../../../../index.html?com/google/common/collect/SetMultimap.html" target=
"_top"><B>FRAMES
</B></A>
389 <A HREF=
"SetMultimap.html" target=
"_top"><B>NO FRAMES
</B></A>
390 <SCRIPT type=
"text/javascript">
393 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
398 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
405 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
406 SUMMARY:
NESTED
|
FIELD
|
CONSTR
|
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
407 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
408 DETAIL:
FIELD
|
CONSTR
|
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
411 <A NAME=
"skip-navbar_bottom"></A>
412 <!-- ======== END OF BOTTOM NAVBAR ======= -->