Home | History | Annotate | Download | only in collect
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2 <!--NewPage-->
      3 <HTML>
      4 <HEAD>
      5 <!-- Generated by javadoc (build 1.6.0-google-internal) on Mon Jan 04 20:47:59 PST 2010 -->
      6 <TITLE>
      7 MapDifference.ValueDifference (Guava Libraries 2010.01.04)
      8 </TITLE>
      9 
     10 <META NAME="date" CONTENT="2010-01-04">
     11 
     12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
     13 
     14 <SCRIPT type="text/javascript">
     15 function windowTitle()
     16 {
     17     if (location.href.indexOf('is-external=true') == -1) {
     18         parent.document.title="MapDifference.ValueDifference (Guava Libraries 2010.01.04)";
     19     }
     20 }
     21 </SCRIPT>
     22 <NOSCRIPT>
     23 </NOSCRIPT>
     24 
     25 </HEAD>
     26 
     27 <BODY BGCOLOR="white" onload="windowTitle();">
     28 <HR>
     29 
     30 
     31 <!-- ========= START OF TOP NAVBAR ======= -->
     32 <A NAME="navbar_top"><!-- --></A>
     33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
     34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
     35 <TR>
     36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
     37 <A NAME="navbar_top_firstrow"><!-- --></A>
     38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
     39   <TR ALIGN="center" VALIGN="top">
     40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
     41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
     42   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
     43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MapDifference.ValueDifference.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
     44   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
     45   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
     46   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
     47   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
     48   </TR>
     49 </TABLE>
     50 </TD>
     51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
     52 </EM>
     53 </TD>
     54 </TR>
     55 
     56 <TR>
     57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
     58 &nbsp;<A HREF="../../../../com/google/common/collect/MapDifference.html" title="interface in com.google.common.collect"><B>PREV CLASS</B></A>&nbsp;
     59 &nbsp;<A HREF="../../../../com/google/common/collect/MapMaker.html" title="class in com.google.common.collect"><B>NEXT CLASS</B></A></FONT></TD>
     60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
     61   <A HREF="../../../../index.html?com/google/common/collect/MapDifference.ValueDifference.html" target="_top"><B>FRAMES</B></A>  &nbsp;
     62 &nbsp;<A HREF="MapDifference.ValueDifference.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
     63 &nbsp;<SCRIPT type="text/javascript">
     64   <!--
     65   if(window==top) {
     66     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
     67   }
     68   //-->
     69 </SCRIPT>
     70 <NOSCRIPT>
     71   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
     72 </NOSCRIPT>
     73 
     74 
     75 </FONT></TD>
     76 </TR>
     77 <TR>
     78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
     79   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
     80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
     81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
     82 </TR>
     83 </TABLE>
     84 <A NAME="skip-navbar_top"></A>
     85 <!-- ========= END OF TOP NAVBAR ========= -->
     86 
     87 <HR>
     88 <!-- ======== START OF CLASS DATA ======== -->
     89 <H2>
     90 <FONT SIZE="-1">
     91 com.google.common.collect</FONT>
     92 <BR>
     93 Interface MapDifference.ValueDifference&lt;V&gt;</H2>
     94 <DL>
     95 <DT><B>Enclosing interface:</B><DD><A HREF="../../../../com/google/common/collect/MapDifference.html" title="interface in com.google.common.collect">MapDifference</A>&lt;<A HREF="../../../../com/google/common/collect/MapDifference.html" title="type parameter in MapDifference">K</A>,<A HREF="../../../../com/google/common/collect/MapDifference.html" title="type parameter in MapDifference">V</A>&gt;</DD>
     96 </DL>
     97 <HR>
     98 <DL>
     99 <DT><PRE>public static interface <B>MapDifference.ValueDifference&lt;V&gt;</B></DL>
    100 </PRE>
    101 
    102 <P>
    103 A difference between the mappings from two maps with the same key. The
    104  <code>leftValue()</code> and <code>rightValue</code> are not equal, and one but not
    105  both of them may be null.
    106 <P>
    107 
    108 <P>
    109 <HR>
    110 
    111 <P>
    112 
    113 <!-- ========== METHOD SUMMARY =========== -->
    114 
    115 <A NAME="method_summary"><!-- --></A>
    116 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    117 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    118 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    119 <B>Method Summary</B></FONT></TH>
    120 </TR>
    121 <TR BGCOLOR="white" CLASS="TableRowColor">
    122 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    123 <CODE>&nbsp;boolean</CODE></FONT></TD>
    124 <TD><CODE><B><A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;other)</CODE>
    125 
    126 <BR>
    127 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Two instances are considered equal if their <A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#leftValue()"><CODE>leftValue()</CODE></A>
    128  values are equal and their <A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#rightValue()"><CODE>rightValue()</CODE></A> values are also equal.</TD>
    129 </TR>
    130 <TR BGCOLOR="white" CLASS="TableRowColor">
    131 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    132 <CODE>&nbsp;int</CODE></FONT></TD>
    133 <TD><CODE><B><A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#hashCode()">hashCode</A></B>()</CODE>
    134 
    135 <BR>
    136 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The hash code equals the value
    137  <code>Arrays.asList(leftValue(), rightValue()).hashCode()</code>.</TD>
    138 </TR>
    139 <TR BGCOLOR="white" CLASS="TableRowColor">
    140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    141 <CODE>&nbsp;<A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html" title="type parameter in MapDifference.ValueDifference">V</A></CODE></FONT></TD>
    142 <TD><CODE><B><A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#leftValue()">leftValue</A></B>()</CODE>
    143 
    144 <BR>
    145 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value from the left map (possibly null).</TD>
    146 </TR>
    147 <TR BGCOLOR="white" CLASS="TableRowColor">
    148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    149 <CODE>&nbsp;<A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html" title="type parameter in MapDifference.ValueDifference">V</A></CODE></FONT></TD>
    150 <TD><CODE><B><A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#rightValue()">rightValue</A></B>()</CODE>
    151 
    152 <BR>
    153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value from the right map (possibly null).</TD>
    154 </TR>
    155 </TABLE>
    156 &nbsp;
    157 <P>
    158 
    159 <!-- ============ METHOD DETAIL ========== -->
    160 
    161 <A NAME="method_detail"><!-- --></A>
    162 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    163 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    164 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
    165 <B>Method Detail</B></FONT></TH>
    166 </TR>
    167 </TABLE>
    168 
    169 <A NAME="leftValue()"><!-- --></A><H3>
    170 leftValue</H3>
    171 <PRE>
    172 <A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html" title="type parameter in MapDifference.ValueDifference">V</A> <B>leftValue</B>()</PRE>
    173 <DL>
    174 <DD>Returns the value from the left map (possibly null).
    175 <P>
    176 <DD><DL>
    177 </DL>
    178 </DD>
    179 </DL>
    180 <HR>
    181 
    182 <A NAME="rightValue()"><!-- --></A><H3>
    183 rightValue</H3>
    184 <PRE>
    185 <A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html" title="type parameter in MapDifference.ValueDifference">V</A> <B>rightValue</B>()</PRE>
    186 <DL>
    187 <DD>Returns the value from the right map (possibly null).
    188 <P>
    189 <DD><DL>
    190 </DL>
    191 </DD>
    192 </DL>
    193 <HR>
    194 
    195 <A NAME="equals(java.lang.Object)"><!-- --></A><H3>
    196 equals</H3>
    197 <PRE>
    198 boolean <B>equals</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT>
    199                <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;other)</PRE>
    200 <DL>
    201 <DD>Two instances are considered equal if their <A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#leftValue()"><CODE>leftValue()</CODE></A>
    202  values are equal and their <A HREF="../../../../com/google/common/collect/MapDifference.ValueDifference.html#rightValue()"><CODE>rightValue()</CODE></A> values are also equal.
    203 <P>
    204 <DD><DL>
    205 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#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?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
    206 </DD>
    207 <DD><DL>
    208 </DL>
    209 </DD>
    210 </DL>
    211 <HR>
    212 
    213 <A NAME="hashCode()"><!-- --></A><H3>
    214 hashCode</H3>
    215 <PRE>
    216 int <B>hashCode</B>()</PRE>
    217 <DL>
    218 <DD>The hash code equals the value
    219  <code>Arrays.asList(leftValue(), rightValue()).hashCode()</code>.
    220 <P>
    221 <DD><DL>
    222 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
    223 </DD>
    224 <DD><DL>
    225 </DL>
    226 </DD>
    227 </DL>
    228 <!-- ========= END OF CLASS DATA ========= -->
    229 <HR>
    230 
    231 
    232 <!-- ======= START OF BOTTOM NAVBAR ====== -->
    233 <A NAME="navbar_bottom"><!-- --></A>
    234 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
    235 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
    236 <TR>
    237 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
    238 <A NAME="navbar_bottom_firstrow"><!-- --></A>
    239 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    240   <TR ALIGN="center" VALIGN="top">
    241   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    242   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    243   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    244   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MapDifference.ValueDifference.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
    245   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    246   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    247   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    248   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    249   </TR>
    250 </TABLE>
    251 </TD>
    252 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
    253 </EM>
    254 </TD>
    255 </TR>
    256 
    257 <TR>
    258 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    259 &nbsp;<A HREF="../../../../com/google/common/collect/MapDifference.html" title="interface in com.google.common.collect"><B>PREV CLASS</B></A>&nbsp;
    260 &nbsp;<A HREF="../../../../com/google/common/collect/MapMaker.html" title="class in com.google.common.collect"><B>NEXT CLASS</B></A></FONT></TD>
    261 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    262   <A HREF="../../../../index.html?com/google/common/collect/MapDifference.ValueDifference.html" target="_top"><B>FRAMES</B></A>  &nbsp;
    263 &nbsp;<A HREF="MapDifference.ValueDifference.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
    264 &nbsp;<SCRIPT type="text/javascript">
    265   <!--
    266   if(window==top) {
    267     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
    268   }
    269   //-->
    270 </SCRIPT>
    271 <NOSCRIPT>
    272   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
    273 </NOSCRIPT>
    274 
    275 
    276 </FONT></TD>
    277 </TR>
    278 <TR>
    279 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    280   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
    281 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    282 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
    283 </TR>
    284 </TABLE>
    285 <A NAME="skip-navbar_bottom"></A>
    286 <!-- ======== END OF BOTTOM NAVBAR ======= -->
    287 
    288 <HR>
    289 
    290 </BODY>
    291 </HTML>
    292