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:48:00 PST 2010 --> 6 <TITLE> 7 Uses of Class com.google.common.annotations.GwtIncompatible (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="Uses of Class com.google.common.annotations.GwtIncompatible (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> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 PREV 59 NEXT</FONT></TD> 60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../../../index.html?com/google/common/annotations//class-useGwtIncompatible.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="GwtIncompatible.html" target="_top"><B>NO FRAMES</B></A> 63 <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 </TABLE> 78 <A NAME="skip-navbar_top"></A> 79 <!-- ========= END OF TOP NAVBAR ========= --> 80 81 <HR> 82 <CENTER> 83 <H2> 84 <B>Uses of Class<br>com.google.common.annotations.GwtIncompatible</B></H2> 85 </CENTER> 86 87 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 88 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 89 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 90 Packages that use <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations">GwtIncompatible</A></FONT></TH> 91 </TR> 92 <TR BGCOLOR="white" CLASS="TableRowColor"> 93 <TD><A HREF="#com.google.common.base"><B>com.google.common.base</B></A></TD> 94 <TD>Miscellaneous common util classes and annotations. </TD> 95 </TR> 96 <TR BGCOLOR="white" CLASS="TableRowColor"> 97 <TD><A HREF="#com.google.common.collect"><B>com.google.common.collect</B></A></TD> 98 <TD>This package contains generic collection interfaces and implementations, and 99 other utilities for working with collections. </TD> 100 </TR> 101 <TR BGCOLOR="white" CLASS="TableRowColor"> 102 <TD><A HREF="#com.google.common.primitives"><B>com.google.common.primitives</B></A></TD> 103 <TD> </TD> 104 </TR> 105 </TABLE> 106 107 <P> 108 <A NAME="com.google.common.base"><!-- --></A> 109 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 110 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 111 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 112 Uses of <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations">GwtIncompatible</A> in <A HREF="../../../../../com/google/common/base/package-summary.html">com.google.common.base</A></FONT></TH> 113 </TR> 114 </TABLE> 115 116 <P> 117 118 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 119 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 120 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/base/package-summary.html">com.google.common.base</A> with annotations of type <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations">GwtIncompatible</A></FONT></TH> 121 </TR> 122 <TR BGCOLOR="white" CLASS="TableRowColor"> 123 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 124 <CODE>static <A HREF="../../../../../com/google/common/base/Predicate.html" title="interface in com.google.common.base">Predicate</A><<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></FONT></TD> 125 <TD><CODE><B>Predicates.</B><B><A HREF="../../../../../com/google/common/base/Predicates.html#instanceOf(java.lang.Class)">instanceOf</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> clazz)</CODE> 126 127 <BR> 128 Returns a predicate that evaluates to <code>true</code> if the object being 129 tested is an instance of the given class.</TD> 130 </TR> 131 </TABLE> 132 133 <P> 134 <A NAME="com.google.common.collect"><!-- --></A> 135 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 136 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 137 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 138 Uses of <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations">GwtIncompatible</A> in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A></FONT></TH> 139 </TR> 140 </TABLE> 141 142 <P> 143 144 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 145 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 146 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A> with annotations of type <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations">GwtIncompatible</A></FONT></TH> 147 </TR> 148 <TR BGCOLOR="white" CLASS="TableRowColor"> 149 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 150 <CODE>static 151 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 152 <TR ALIGN="right" VALIGN=""> 153 <TD NOWRAP><FONT SIZE="-1"> 154 <CODE><T> T[]</CODE></FONT></TD> 155 </TR> 156 </TABLE> 157 </CODE></FONT></TD> 158 <TD><CODE><B>ObjectArrays.</B><B><A HREF="../../../../../com/google/common/collect/ObjectArrays.html#concat(T[], T[], java.lang.Class)">concat</A></B>(T[] first, 159 T[] second, 160 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type)</CODE> 161 162 <BR> 163 Returns a new array that contains the concatenated contents of two arrays.</TD> 164 </TR> 165 <TR BGCOLOR="white" CLASS="TableRowColor"> 166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 167 <CODE> <A HREF="../../../../../com/google/common/collect/MapMaker.html" title="class in com.google.common.collect">MapMaker</A></CODE></FONT></TD> 168 <TD><CODE><B>MapMaker.</B><B><A HREF="../../../../../com/google/common/collect/MapMaker.html#concurrencyLevel(int)">concurrencyLevel</A></B>(int concurrencyLevel)</CODE> 169 170 <BR> 171 Guides the allowed concurrency among update operations.</TD> 172 </TR> 173 <TR BGCOLOR="white" CLASS="TableRowColor"> 174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 175 <CODE>static 176 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 177 <TR ALIGN="right" VALIGN=""> 178 <TD NOWRAP><FONT SIZE="-1"> 179 <CODE><T> <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><T></CODE></FONT></TD> 180 </TR> 181 </TABLE> 182 </CODE></FONT></TD> 183 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#filter(java.lang.Iterable, java.lang.Class)">filter</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><?> unfiltered, 184 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type)</CODE> 185 186 <BR> 187 Returns all instances of class <code>type</code> in <code>unfiltered</code>.</TD> 188 </TR> 189 <TR BGCOLOR="white" CLASS="TableRowColor"> 190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 191 <CODE>static 192 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 193 <TR ALIGN="right" VALIGN=""> 194 <TD NOWRAP><FONT SIZE="-1"> 195 <CODE><T> <A HREF="../../../../../com/google/common/collect/UnmodifiableIterator.html" title="class in com.google.common.collect">UnmodifiableIterator</A><T></CODE></FONT></TD> 196 </TR> 197 </TABLE> 198 </CODE></FONT></TD> 199 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#filter(java.util.Iterator, java.lang.Class)">filter</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><?> unfiltered, 200 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type)</CODE> 201 202 <BR> 203 Returns all instances of class <code>type</code> in <code>unfiltered</code>.</TD> 204 </TR> 205 <TR BGCOLOR="white" CLASS="TableRowColor"> 206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 207 <CODE>static 208 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 209 <TR ALIGN="right" VALIGN=""> 210 <TD NOWRAP><FONT SIZE="-1"> 211 <CODE><T> T[]</CODE></FONT></TD> 212 </TR> 213 </TABLE> 214 </CODE></FONT></TD> 215 <TD><CODE><B>ObjectArrays.</B><B><A HREF="../../../../../com/google/common/collect/ObjectArrays.html#newArray(java.lang.Class, int)">newArray</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type, 216 int length)</CODE> 217 218 <BR> 219 Returns a new array of the given length with the specified component type.</TD> 220 </TR> 221 <TR BGCOLOR="white" CLASS="TableRowColor"> 222 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 223 <CODE> <A HREF="../../../../../com/google/common/collect/MapMaker.html" title="class in com.google.common.collect">MapMaker</A></CODE></FONT></TD> 224 <TD><CODE><B>MapMaker.</B><B><A HREF="../../../../../com/google/common/collect/MapMaker.html#softKeys()">softKeys</A></B>()</CODE> 225 226 <BR> 227 Specifies that each key (not value) stored in the map should be 228 wrapped in a <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ref/SoftReference.html?is-external=true" title="class or interface in java.lang.ref"><CODE>SoftReference</CODE></A> (by default, strong references 229 are used).</TD> 230 </TR> 231 <TR BGCOLOR="white" CLASS="TableRowColor"> 232 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 233 <CODE> <A HREF="../../../../../com/google/common/collect/MapMaker.html" title="class in com.google.common.collect">MapMaker</A></CODE></FONT></TD> 234 <TD><CODE><B>MapMaker.</B><B><A HREF="../../../../../com/google/common/collect/MapMaker.html#softValues()">softValues</A></B>()</CODE> 235 236 <BR> 237 Specifies that each value (not key) stored in the map should be 238 wrapped in a <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ref/SoftReference.html?is-external=true" title="class or interface in java.lang.ref"><CODE>SoftReference</CODE></A> (by default, strong references 239 are used).</TD> 240 </TR> 241 <TR BGCOLOR="white" CLASS="TableRowColor"> 242 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 243 <CODE> <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><<A HREF="../../../../../com/google/common/collect/ForwardingList.html" title="type parameter in ForwardingList">E</A>></CODE></FONT></TD> 244 <TD><CODE><B>ForwardingList.</B><B><A HREF="../../../../../com/google/common/collect/ForwardingList.html#subList(int, int)">subList</A></B>(int fromIndex, 245 int toIndex)</CODE> 246 247 <BR> 248 </TD> 249 </TR> 250 <TR BGCOLOR="white" CLASS="TableRowColor"> 251 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 252 <CODE>static 253 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 254 <TR ALIGN="right" VALIGN=""> 255 <TD NOWRAP><FONT SIZE="-1"> 256 <CODE><T> T[]</CODE></FONT></TD> 257 </TR> 258 </TABLE> 259 </CODE></FONT></TD> 260 <TD><CODE><B>Iterables.</B><B><A HREF="../../../../../com/google/common/collect/Iterables.html#toArray(java.lang.Iterable, java.lang.Class)">toArray</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><? extends T> iterable, 261 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type)</CODE> 262 263 <BR> 264 Copies an iterable's elements into an array.</TD> 265 </TR> 266 <TR BGCOLOR="white" CLASS="TableRowColor"> 267 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 268 <CODE>static 269 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 270 <TR ALIGN="right" VALIGN=""> 271 <TD NOWRAP><FONT SIZE="-1"> 272 <CODE><T> T[]</CODE></FONT></TD> 273 </TR> 274 </TABLE> 275 </CODE></FONT></TD> 276 <TD><CODE><B>Iterators.</B><B><A HREF="../../../../../com/google/common/collect/Iterators.html#toArray(java.util.Iterator, java.lang.Class)">toArray</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><? extends T> iterator, 277 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type)</CODE> 278 279 <BR> 280 Copies an iterator's elements into an array.</TD> 281 </TR> 282 <TR BGCOLOR="white" CLASS="TableRowColor"> 283 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 284 <CODE> <A HREF="../../../../../com/google/common/collect/MapMaker.html" title="class in com.google.common.collect">MapMaker</A></CODE></FONT></TD> 285 <TD><CODE><B>MapMaker.</B><B><A HREF="../../../../../com/google/common/collect/MapMaker.html#weakKeys()">weakKeys</A></B>()</CODE> 286 287 <BR> 288 Specifies that each key (not value) stored in the map should be 289 wrapped in a <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ref/WeakReference.html?is-external=true" title="class or interface in java.lang.ref"><CODE>WeakReference</CODE></A> (by default, strong references 290 are used).</TD> 291 </TR> 292 <TR BGCOLOR="white" CLASS="TableRowColor"> 293 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 294 <CODE> <A HREF="../../../../../com/google/common/collect/MapMaker.html" title="class in com.google.common.collect">MapMaker</A></CODE></FONT></TD> 295 <TD><CODE><B>MapMaker.</B><B><A HREF="../../../../../com/google/common/collect/MapMaker.html#weakValues()">weakValues</A></B>()</CODE> 296 297 <BR> 298 Specifies that each value (not key) stored in the map should be 299 wrapped in a <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ref/WeakReference.html?is-external=true" title="class or interface in java.lang.ref"><CODE>WeakReference</CODE></A> (by default, strong references 300 are used).</TD> 301 </TR> 302 </TABLE> 303 304 <P> 305 <A NAME="com.google.common.primitives"><!-- --></A> 306 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 307 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 308 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 309 Uses of <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations">GwtIncompatible</A> in <A HREF="../../../../../com/google/common/primitives/package-summary.html">com.google.common.primitives</A></FONT></TH> 310 </TR> 311 </TABLE> 312 313 <P> 314 315 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 316 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 317 <TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/primitives/package-summary.html">com.google.common.primitives</A> with annotations of type <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations">GwtIncompatible</A></FONT></TH> 318 </TR> 319 <TR BGCOLOR="white" CLASS="TableRowColor"> 320 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 321 <CODE>static int</CODE></FONT></TD> 322 <TD><CODE><B>Ints.</B><B><A HREF="../../../../../com/google/common/primitives/Ints.html#fromByteArray(byte[])">fromByteArray</A></B>(byte[] bytes)</CODE> 323 324 <BR> 325 Returns the <code>int</code> value whose big-endian representation is stored in 326 the first 4 bytes of <code>bytes</code>; equivalent to <code>ByteBuffer.wrap(bytes).getInt()</code>.</TD> 327 </TR> 328 <TR BGCOLOR="white" CLASS="TableRowColor"> 329 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 330 <CODE>static long</CODE></FONT></TD> 331 <TD><CODE><B>Longs.</B><B><A HREF="../../../../../com/google/common/primitives/Longs.html#fromByteArray(byte[])">fromByteArray</A></B>(byte[] bytes)</CODE> 332 333 <BR> 334 Returns the <code>long</code> value whose big-endian representation is 335 stored in the first 8 bytes of <code>bytes</code>; equivalent to <code>ByteBuffer.wrap(bytes).getLong()</code>.</TD> 336 </TR> 337 <TR BGCOLOR="white" CLASS="TableRowColor"> 338 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 339 <CODE>static short</CODE></FONT></TD> 340 <TD><CODE><B>Shorts.</B><B><A HREF="../../../../../com/google/common/primitives/Shorts.html#fromByteArray(byte[])">fromByteArray</A></B>(byte[] bytes)</CODE> 341 342 <BR> 343 Returns the <code>short</code> value whose big-endian representation is 344 stored in the first ? bytes of <code>bytes</code>; equivalent to <code>ByteBuffer.wrap(bytes).getShort()</code>.</TD> 345 </TR> 346 <TR BGCOLOR="white" CLASS="TableRowColor"> 347 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 348 <CODE>static char</CODE></FONT></TD> 349 <TD><CODE><B>Chars.</B><B><A HREF="../../../../../com/google/common/primitives/Chars.html#fromByteArray(byte[])">fromByteArray</A></B>(byte[] bytes)</CODE> 350 351 <BR> 352 Returns the <code>char</code> value whose big-endian representation is 353 stored in the first 2 bytes of <code>bytes</code>; equivalent to <code>ByteBuffer.wrap(bytes).getChar()</code>.</TD> 354 </TR> 355 <TR BGCOLOR="white" CLASS="TableRowColor"> 356 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 357 <CODE>static byte[]</CODE></FONT></TD> 358 <TD><CODE><B>Chars.</B><B><A HREF="../../../../../com/google/common/primitives/Chars.html#toByteArray(char)">toByteArray</A></B>(char value)</CODE> 359 360 <BR> 361 Returns a big-endian representation of <code>value</code> in a 2-element byte 362 array; equivalent to <code>ByteBuffer.allocate(2).putChar(value).array()</code>.</TD> 363 </TR> 364 <TR BGCOLOR="white" CLASS="TableRowColor"> 365 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 366 <CODE>static byte[]</CODE></FONT></TD> 367 <TD><CODE><B>Ints.</B><B><A HREF="../../../../../com/google/common/primitives/Ints.html#toByteArray(int)">toByteArray</A></B>(int value)</CODE> 368 369 <BR> 370 Returns a big-endian representation of <code>value</code> in a 4-element byte 371 array; equivalent to <code>ByteBuffer.allocate(4).putInt(value).array()</code>.</TD> 372 </TR> 373 <TR BGCOLOR="white" CLASS="TableRowColor"> 374 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 375 <CODE>static byte[]</CODE></FONT></TD> 376 <TD><CODE><B>Longs.</B><B><A HREF="../../../../../com/google/common/primitives/Longs.html#toByteArray(long)">toByteArray</A></B>(long value)</CODE> 377 378 <BR> 379 Returns a big-endian representation of <code>value</code> in an 8-element byte 380 array; equivalent to <code>ByteBuffer.allocate(8).putLong(value).array()</code>.</TD> 381 </TR> 382 <TR BGCOLOR="white" CLASS="TableRowColor"> 383 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 384 <CODE>static byte[]</CODE></FONT></TD> 385 <TD><CODE><B>Shorts.</B><B><A HREF="../../../../../com/google/common/primitives/Shorts.html#toByteArray(short)">toByteArray</A></B>(short value)</CODE> 386 387 <BR> 388 Returns a big-endian representation of <code>value</code> in a ?-element byte 389 array; equivalent to <code>ByteBuffer.allocate(?).putShort(value).array()</code>.</TD> 390 </TR> 391 </TABLE> 392 393 <P> 394 <HR> 395 396 397 <!-- ======= START OF BOTTOM NAVBAR ====== --> 398 <A NAME="navbar_bottom"><!-- --></A> 399 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 400 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 401 <TR> 402 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 403 <A NAME="navbar_bottom_firstrow"><!-- --></A> 404 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 405 <TR ALIGN="center" VALIGN="top"> 406 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 407 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 408 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/annotations/GwtIncompatible.html" title="annotation in com.google.common.annotations"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 409 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 410 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 411 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 412 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 413 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 414 </TR> 415 </TABLE> 416 </TD> 417 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 418 </EM> 419 </TD> 420 </TR> 421 422 <TR> 423 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 424 PREV 425 NEXT</FONT></TD> 426 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 427 <A HREF="../../../../../index.html?com/google/common/annotations//class-useGwtIncompatible.html" target="_top"><B>FRAMES</B></A> 428 <A HREF="GwtIncompatible.html" target="_top"><B>NO FRAMES</B></A> 429 <SCRIPT type="text/javascript"> 430 <!-- 431 if(window==top) { 432 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 433 } 434 //--> 435 </SCRIPT> 436 <NOSCRIPT> 437 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 438 </NOSCRIPT> 439 440 441 </FONT></TD> 442 </TR> 443 </TABLE> 444 <A NAME="skip-navbar_bottom"></A> 445 <!-- ======== END OF BOTTOM NAVBAR ======= --> 446 447 <HR> 448 449 </BODY> 450 </HTML> 451