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 ImmutableSortedSet.Builder (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="ImmutableSortedSet.Builder (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/ImmutableSortedSet.Builder.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/ImmutableSortedSet.html" title="class in com.google.common.collect"><B>PREV CLASS</B></A>&nbsp;
     59 &nbsp;<A HREF="../../../../com/google/common/collect/Iterables.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/ImmutableSortedSet.Builder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
     62 &nbsp;<A HREF="ImmutableSortedSet.Builder.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;<A HREF="#constructor_summary">CONSTR</A>&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;<A HREF="#constructor_detail">CONSTR</A>&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 Class ImmutableSortedSet.Builder&lt;E&gt;</H2>
     94 <PRE>
     95 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
     96   <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html" title="class in com.google.common.collect">com.google.common.collect.ImmutableSet.Builder</A>&lt;E&gt;
     97       <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.common.collect.ImmutableSortedSet.Builder&lt;E&gt;</B>
     98 </PRE>
     99 <DL>
    100 <DT><B>Enclosing class:</B><DD><A HREF="../../../../com/google/common/collect/ImmutableSortedSet.html" title="class in com.google.common.collect">ImmutableSortedSet</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.html" title="type parameter in ImmutableSortedSet">E</A>&gt;</DD>
    101 </DL>
    102 <HR>
    103 <DL>
    104 <DT><PRE>public static final class <B>ImmutableSortedSet.Builder&lt;E&gt;</B><DT>extends <A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html" title="class in com.google.common.collect">ImmutableSet.Builder</A>&lt;E&gt;</DL>
    105 </PRE>
    106 
    107 <P>
    108 A builder for creating immutable sorted set instances, especially
    109  <code>public static final</code> sets ("constant sets"), with a given
    110  comparator.
    111 
    112  <p>Example:
    113  <pre><code>public static final ImmutableSortedSet&lt;Number&gt; LUCKY_NUMBERS
    114        = new ImmutableSortedSet.Builder&lt;Number&gt;(ODDS_FIRST_COMPARATOR)
    115            .addAll(SINGLE_DIGIT_PRIMES)
    116            .add(42)
    117            .build();</code></pre>
    118 
    119  <p>Builder instances can be reused - it is safe to call <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html#build()"><CODE>build()</CODE></A>
    120  multiple times to build multiple sets in series. Each set
    121  is a superset of the set created before it.
    122 <P>
    123 
    124 <P>
    125 <HR>
    126 
    127 <P>
    128 
    129 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
    130 
    131 <A NAME="constructor_summary"><!-- --></A>
    132 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    133 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    134 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    135 <B>Constructor Summary</B></FONT></TH>
    136 </TR>
    137 <TR BGCOLOR="white" CLASS="TableRowColor">
    138 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html#ImmutableSortedSet.Builder(java.util.Comparator)">ImmutableSortedSet.Builder</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&lt;? super <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;&nbsp;comparator)</CODE>
    139 
    140 <BR>
    141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new builder.</TD>
    142 </TR>
    143 </TABLE>
    144 &nbsp;
    145 <!-- ========== METHOD SUMMARY =========== -->
    146 
    147 <A NAME="method_summary"><!-- --></A>
    148 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    149 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    150 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    151 <B>Method Summary</B></FONT></TH>
    152 </TR>
    153 <TR BGCOLOR="white" CLASS="TableRowColor">
    154 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    155 <CODE>&nbsp;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></FONT></TD>
    156 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html#add(E...)">add</A></B>(<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>...&nbsp;elements)</CODE>
    157 
    158 <BR>
    159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds each element of <code>elements</code> to the <code>ImmutableSortedSet</code>,
    160  ignoring duplicate elements (only the first duplicate element is added).</TD>
    161 </TR>
    162 <TR BGCOLOR="white" CLASS="TableRowColor">
    163 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    164 <CODE>&nbsp;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></FONT></TD>
    165 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html#add(E)">add</A></B>(<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&nbsp;element)</CODE>
    166 
    167 <BR>
    168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds <code>element</code> to the <code>ImmutableSortedSet</code>.</TD>
    169 </TR>
    170 <TR BGCOLOR="white" CLASS="TableRowColor">
    171 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    172 <CODE>&nbsp;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></FONT></TD>
    173 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html#addAll(java.lang.Iterable)">addAll</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A>&lt;? extends <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;&nbsp;elements)</CODE>
    174 
    175 <BR>
    176 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds each element of <code>elements</code> to the <code>ImmutableSortedSet</code>,
    177  ignoring duplicate elements (only the first duplicate element is added).</TD>
    178 </TR>
    179 <TR BGCOLOR="white" CLASS="TableRowColor">
    180 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    181 <CODE>&nbsp;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></FONT></TD>
    182 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html#addAll(java.util.Iterator)">addAll</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;? extends <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;&nbsp;elements)</CODE>
    183 
    184 <BR>
    185 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds each element of <code>elements</code> to the <code>ImmutableSortedSet</code>,
    186  ignoring duplicate elements (only the first duplicate element is added).</TD>
    187 </TR>
    188 <TR BGCOLOR="white" CLASS="TableRowColor">
    189 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    190 <CODE>&nbsp;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.html" title="class in com.google.common.collect">ImmutableSortedSet</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></FONT></TD>
    191 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html#build()">build</A></B>()</CODE>
    192 
    193 <BR>
    194 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a newly-created <code>ImmutableSortedSet</code> based on the contents
    195  of the <code>Builder</code> and its comparator.</TD>
    196 </TR>
    197 </TABLE>
    198 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
    199 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    200 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
    201 <TH ALIGN="left"><B>Methods inherited from class java.lang.<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></B></TH>
    202 </TR>
    203 <TR BGCOLOR="white" CLASS="TableRowColor">
    204 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <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>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <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>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
    205 </TR>
    206 </TABLE>
    207 &nbsp;
    208 <P>
    209 
    210 <!-- ========= CONSTRUCTOR DETAIL ======== -->
    211 
    212 <A NAME="constructor_detail"><!-- --></A>
    213 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    214 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    215 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
    216 <B>Constructor Detail</B></FONT></TH>
    217 </TR>
    218 </TABLE>
    219 
    220 <A NAME="ImmutableSortedSet.Builder(java.util.Comparator)"><!-- --></A><H3>
    221 ImmutableSortedSet.Builder</H3>
    222 <PRE>
    223 public <B>ImmutableSortedSet.Builder</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</A>&lt;? super <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;&nbsp;comparator)</PRE>
    224 <DL>
    225 <DD>Creates a new builder. The returned builder is equivalent to the builder
    226  generated by <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.html#orderedBy(java.util.Comparator)"><CODE>ImmutableSortedSet.orderedBy(java.util.Comparator<E>)</CODE></A>.
    227 <P>
    228 </DL>
    229 
    230 <!-- ============ METHOD DETAIL ========== -->
    231 
    232 <A NAME="method_detail"><!-- --></A>
    233 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    234 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    235 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
    236 <B>Method Detail</B></FONT></TH>
    237 </TR>
    238 </TABLE>
    239 
    240 <A NAME="add(java.lang.Object)"><!-- --></A><A NAME="add(E)"><!-- --></A><H3>
    241 add</H3>
    242 <PRE>
    243 public <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt; <B>add</B>(<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&nbsp;element)</PRE>
    244 <DL>
    245 <DD>Adds <code>element</code> to the <code>ImmutableSortedSet</code>.  If the
    246  <code>ImmutableSortedSet</code> already contains <code>element</code>, then
    247  <code>add</code> has no effect. (only the previously added element
    248  is retained).
    249 <P>
    250 <DD><DL>
    251 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html#add(E)">add</A></CODE> in class <CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html" title="class in com.google.common.collect">ImmutableSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></DL>
    252 </DD>
    253 <DD><DL>
    254 <DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to add
    255 <DT><B>Returns:</B><DD>this <code>Builder</code> object
    256 <DT><B>Throws:</B>
    257 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>element</code> is null</DL>
    258 </DD>
    259 </DL>
    260 <HR>
    261 
    262 <A NAME="add(java.lang.Object[])"><!-- --></A><A NAME="add(E...)"><!-- --></A><H3>
    263 add</H3>
    264 <PRE>
    265 public <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt; <B>add</B>(<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>...&nbsp;elements)</PRE>
    266 <DL>
    267 <DD>Adds each element of <code>elements</code> to the <code>ImmutableSortedSet</code>,
    268  ignoring duplicate elements (only the first duplicate element is added).
    269 <P>
    270 <DD><DL>
    271 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html#add(E...)">add</A></CODE> in class <CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html" title="class in com.google.common.collect">ImmutableSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></DL>
    272 </DD>
    273 <DD><DL>
    274 <DT><B>Parameters:</B><DD><CODE>elements</CODE> - the elements to add
    275 <DT><B>Returns:</B><DD>this <code>Builder</code> object
    276 <DT><B>Throws:</B>
    277 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>elements</code> contains a null element</DL>
    278 </DD>
    279 </DL>
    280 <HR>
    281 
    282 <A NAME="addAll(java.lang.Iterable)"><!-- --></A><H3>
    283 addAll</H3>
    284 <PRE>
    285 public <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt; <B>addAll</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A>&lt;? extends <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;&nbsp;elements)</PRE>
    286 <DL>
    287 <DD>Adds each element of <code>elements</code> to the <code>ImmutableSortedSet</code>,
    288  ignoring duplicate elements (only the first duplicate element is added).
    289 <P>
    290 <DD><DL>
    291 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html#addAll(java.lang.Iterable)">addAll</A></CODE> in class <CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html" title="class in com.google.common.collect">ImmutableSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></DL>
    292 </DD>
    293 <DD><DL>
    294 <DT><B>Parameters:</B><DD><CODE>elements</CODE> - the elements to add to the <code>ImmutableSortedSet</code>
    295 <DT><B>Returns:</B><DD>this <code>Builder</code> object
    296 <DT><B>Throws:</B>
    297 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>elements</code> contains a null element</DL>
    298 </DD>
    299 </DL>
    300 <HR>
    301 
    302 <A NAME="addAll(java.util.Iterator)"><!-- --></A><H3>
    303 addAll</H3>
    304 <PRE>
    305 public <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="class in com.google.common.collect">ImmutableSortedSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt; <B>addAll</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A>&lt;? extends <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;&nbsp;elements)</PRE>
    306 <DL>
    307 <DD>Adds each element of <code>elements</code> to the <code>ImmutableSortedSet</code>,
    308  ignoring duplicate elements (only the first duplicate element is added).
    309 <P>
    310 <DD><DL>
    311 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html#addAll(java.util.Iterator)">addAll</A></CODE> in class <CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html" title="class in com.google.common.collect">ImmutableSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></DL>
    312 </DD>
    313 <DD><DL>
    314 <DT><B>Parameters:</B><DD><CODE>elements</CODE> - the elements to add to the <code>ImmutableSortedSet</code>
    315 <DT><B>Returns:</B><DD>this <code>Builder</code> object
    316 <DT><B>Throws:</B>
    317 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>elements</code> contains a null element</DL>
    318 </DD>
    319 </DL>
    320 <HR>
    321 
    322 <A NAME="build()"><!-- --></A><H3>
    323 build</H3>
    324 <PRE>
    325 public <A HREF="../../../../com/google/common/collect/ImmutableSortedSet.html" title="class in com.google.common.collect">ImmutableSortedSet</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt; <B>build</B>()</PRE>
    326 <DL>
    327 <DD>Returns a newly-created <code>ImmutableSortedSet</code> based on the contents
    328  of the <code>Builder</code> and its comparator.
    329 <P>
    330 <DD><DL>
    331 <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html#build()">build</A></CODE> in class <CODE><A HREF="../../../../com/google/common/collect/ImmutableSet.Builder.html" title="class in com.google.common.collect">ImmutableSet.Builder</A>&lt;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.Builder.html" title="type parameter in ImmutableSortedSet.Builder">E</A>&gt;</CODE></DL>
    332 </DD>
    333 <DD><DL>
    334 </DL>
    335 </DD>
    336 </DL>
    337 <!-- ========= END OF CLASS DATA ========= -->
    338 <HR>
    339 
    340 
    341 <!-- ======= START OF BOTTOM NAVBAR ====== -->
    342 <A NAME="navbar_bottom"><!-- --></A>
    343 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
    344 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
    345 <TR>
    346 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
    347 <A NAME="navbar_bottom_firstrow"><!-- --></A>
    348 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    349   <TR ALIGN="center" VALIGN="top">
    350   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    351   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    352   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    353   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ImmutableSortedSet.Builder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
    354   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    355   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    356   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    357   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    358   </TR>
    359 </TABLE>
    360 </TD>
    361 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
    362 </EM>
    363 </TD>
    364 </TR>
    365 
    366 <TR>
    367 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    368 &nbsp;<A HREF="../../../../com/google/common/collect/ImmutableSortedSet.html" title="class in com.google.common.collect"><B>PREV CLASS</B></A>&nbsp;
    369 &nbsp;<A HREF="../../../../com/google/common/collect/Iterables.html" title="class in com.google.common.collect"><B>NEXT CLASS</B></A></FONT></TD>
    370 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    371   <A HREF="../../../../index.html?com/google/common/collect/ImmutableSortedSet.Builder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
    372 &nbsp;<A HREF="ImmutableSortedSet.Builder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
    373 &nbsp;<SCRIPT type="text/javascript">
    374   <!--
    375   if(window==top) {
    376     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
    377   }
    378   //-->
    379 </SCRIPT>
    380 <NOSCRIPT>
    381   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
    382 </NOSCRIPT>
    383 
    384 
    385 </FONT></TD>
    386 </TR>
    387 <TR>
    388 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    389   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
    390 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    391 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
    392 </TR>
    393 </TABLE>
    394 <A NAME="skip-navbar_bottom"></A>
    395 <!-- ======== END OF BOTTOM NAVBAR ======= -->
    396 
    397 <HR>
    398 
    399 </BODY>
    400 </HTML>
    401