Home | History | Annotate | Download | only in primitives

Lines Matching full:boolean

104 Static utility methods pertaining to <code>boolean</code> primitives, that are not
105 already found in either <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><CODE>Boolean</CODE></A> or <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Arrays.html?is-external=true" title="class or interface in java.util"><CODE>Arrays</CODE></A>.
129 <CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>&gt;</CODE></FONT></TD>
130 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#asList(boolean...)">asList</A></B>(boolean...&nbsp;backingArray)</CODE>
138 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#compare(boolean, boolean)">compare</A></B>(boolean&nbsp;a,
139 boolean&nbsp;b)</CODE>
142 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares the two specified <code>boolean</code> values in the standard way
147 <CODE>static&nbsp;boolean[]</CODE></FONT></TD>
148 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#concat(boolean[]...)">concat</A></B>(boolean[]...&nbsp;arrays)</CODE>
155 <CODE>static&nbsp;boolean</CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#contains(boolean[], boolean)">contains</A></B>(boolean[]&nbsp;array,
157 boolean&nbsp;target)</CODE>
165 <CODE>static&nbsp;boolean[]</CODE></FONT></TD>
166 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#ensureCapacity(boolean[], int, int)">ensureCapacity</A></B>(boolean[]&nbsp;array,
177 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#hashCode(boolean)">hashCode</A></B>(boolean&nbsp;value)</CODE>
181 <code>((Boolean) value).hashCode()</code>.</TD>
186 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#indexOf(boolean[], boolean)">indexOf</A></B>(boolean[]&nbsp;array,
187 boolean&nbsp;target)</CODE>
196 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#indexOf(boolean[], boolean[])">indexOf</A></B>(boolean[]&nbsp;array,
197 boolean[]&nbsp;target)</CODE>
205 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#join(java.lang.String, boolean...)">join</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;separator,
206 boolean...&nbsp;array)</CODE>
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string containing the supplied <code>boolean</code> values separated
215 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#lastIndexOf(boolean[], boolean)">lastIndexOf</A></B>(boolean[]&nbsp;array,
216 boolean&nbsp;target)</CODE>
224 <CODE>static&nbsp;<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;boolean[]&gt;</CODE></FONT></TD>
228 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a comparator that compares two <code>boolean</code> arrays
233 <CODE>static&nbsp;boolean[]</CODE></FONT></TD>
234 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/Booleans.html#toArray(java.util.Collection)">toArray</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>&gt;&nbsp;collection)</CODE>
237 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies a collection of <code>Boolean</code> instances into a new array of
238 primitive <code>boolean</code> values.</TD>
263 <A NAME="hashCode(boolean)"><!-- --></A><H3>
266 public static int <B>hashCode</B>(boolean&nbsp;value)</PRE>
269 <code>((Boolean) value).hashCode()</code>.
272 <DT><B>Parameters:</B><DD><CODE>value</CODE> - a primitive <code>boolean</code> value
278 <A NAME="compare(boolean, boolean)"><!-- --></A><H3>
281 public static int <B>compare</B>(boolean&nbsp;a,
282 boolean&nbsp;b)</PRE>
284 <DD>Compares the two specified <code>boolean</code> values in the standard way
286 value returned is the same as that of <code>((Boolean) a).compareTo(b)</code>.
289 <DT><B>Parameters:</B><DD><CODE>a</CODE> - the first <code>boolean</code> to compare<DD><CODE>b</CODE> - the second <code>boolean</code> to compare
296 <A NAME="contains(boolean[], boolean)"><!-- --></A><H3>
299 public static boolean <B>contains</B>(boolean[]&nbsp;array,
300 boolean&nbsp;target)</PRE>
310 <DT><B>Parameters:</B><DD><CODE>array</CODE> - an array of <code>boolean</code> values, possibly empty<DD><CODE>target</CODE> - a primitive <code>boolean</code> value
316 <A NAME="indexOf(boolean[], boolean)"><!-- --></A><H3>
319 public static int <B>indexOf</B>(boolean[]&nbsp;array,
320 boolean&nbsp;target)</PRE>
329 <DT><B>Parameters:</B><DD><CODE>array</CODE> - an array of <code>boolean</code> values, possibly empty<DD><CODE>target</CODE> - a primitive <code>boolean</code> value
336 <A NAME="indexOf(boolean[], boolean[])"><!-- --></A><H3>
339 public static int <B>indexOf</B>(boolean[]&nbsp;array,
340 boolean[]&nbsp;target)</PRE>
353 <A NAME="lastIndexOf(boolean[], boolean)"><!-- --></A><H3>
356 public static int <B>lastIndexOf</B>(boolean[]&nbsp;array,
357 boolean&nbsp;target)</PRE>
363 <DT><B>Parameters:</B><DD><CODE>array</CODE> - an array of <code>boolean</code> values, possibly empty<DD><CODE>target</CODE> - a primitive <code>boolean</code> value
370 <A NAME="concat(boolean[]...)"><!-- --></A><H3>
373 public static boolean[] <B>concat</B>(boolean[]...&nbsp;arrays)</PRE>
376 For example, <code>concat(new boolean[] {a, b}, new boolean[] {}, new
377 boolean[] {c}</code> returns the array <code>{a, b, c}</code>.
380 <DT><B>Parameters:</B><DD><CODE>arrays</CODE> - zero or more <code>boolean</code> arrays
387 <A NAME="ensureCapacity(boolean[], int, int)"><!-- --></A><H3>
390 public static boolean[] <B>ensureCapacity</B>(boolean[]&nbsp;array,
412 <A NAME="join(java.lang.String, boolean...)"><!-- --></A><H3>
416 boolean...&nbsp;array)</PRE>
418 <DD>Returns a string containing the supplied <code>boolean</code> values separated
424 the resulting string (but not at the start or end)<DD><CODE>array</CODE> - an array of <code>boolean</code> values, possibly empty</DL>
432 public static <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;boolean[]&gt; <B>lexicographicalComparator</B>()</PRE>
434 <DD>Returns a comparator that compares two <code>boolean</code> arrays
435 lexicographically. That is, it compares, using <A HREF="../../../../com/google/common/primitives/Booleans.html#compare(boolean, boolean)"><CODE>compare(boolean, boolean)</CODE></A>), the first pair of values that follow any
441 it is consistent with <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Arrays.html?is-external=true#equals(boolean[], boolean[])" title="class or interface in java.util"><CODE>Arrays.equals(boolean[], boolean[])</CODE></A>.
455 public static boolean[] <B>toArray</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>&gt;&nbsp;collection)</PRE>
457 <DD>Copies a collection of <code>Boolean</code> instances into a new array of
458 primitive <code>boolean</code> values.
466 <DT><B>Parameters:</B><DD><CODE>collection</CODE> - a collection of <code>Boolean</code> objects
476 <A NAME="asList(boolean...)"><!-- --></A><H3>
479 public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</A>&gt; <B>asList</B>(boolean...&nbsp;backingArray)</PRE>
485 <code>Boolean</code> objects written to or read from it. For example, whether