Home | History | Annotate | Download | only in primitives

Lines Matching full:code

104 Static utility methods pertaining to <code>byte</code> primitives that
106 as unsigned are found in <A HREF="../../../../com/google/common/primitives/UnsignedBytes.html" title="class in com.google.common.primitives"><CODE>UnsignedBytes</CODE></A>, and the methods for which
107 signedness is not an issue are in <A HREF="../../../../com/google/common/primitives/Bytes.html" title="class in com.google.common.primitives"><CODE>Bytes</CODE></A>.
131 <CODE>static&nbsp;byte</CODE></FONT></TD>
132 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/SignedBytes.html#checkedCast(long)">checkedCast</A></B>(long&nbsp;value)</CODE>
135 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>byte</code> value that is equal to <code>value</code>, if possible.</TD>
139 <CODE>static&nbsp;int</CODE></FONT></TD>
140 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/SignedBytes.html#compare(byte, byte)">compare</A></B>(byte&nbsp;a,
141 byte&nbsp;b)</CODE>
144 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares the two specified <code>byte</code> values.</TD>
148 <CODE>static&nbsp;<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></CODE></FONT></TD>
149 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/SignedBytes.html#join(java.lang.String, byte...)">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,
150 byte...&nbsp;array)</CODE>
153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string containing the supplied <code>byte</code> values separated
154 by <code>separator</code>.</TD>
158 <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;byte[]&gt;</CODE></FONT></TD>
159 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/SignedBytes.html#lexicographicalComparator()">lexicographicalComparator</A></B>()</CODE>
162 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a comparator that compares two <code>byte</code> arrays
167 <CODE>static&nbsp;byte</CODE></FONT></TD>
168 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/SignedBytes.html#max(byte...)">max</A></B>(byte...&nbsp;array)</CODE>
171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the greatest value present in <code>array</code>.</TD>
175 <CODE>static&nbsp;byte</CODE></FONT></TD>
176 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/SignedBytes.html#min(byte...)">min</A></B>(byte...&nbsp;array)</CODE>
179 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the least value present in <code>array</code>.</TD>
183 <CODE>static&nbsp;byte</CODE></FONT></TD>
184 <TD><CODE><B><A HREF="../../../../com/google/common/primitives/SignedBytes.html#saturatedCast(long)">saturatedCast</A></B>(long&nbsp;value)</CODE>
187 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>byte</code> nearest in value to <code>value</code>.</TD>
196 <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>
217 <DD>Returns the <code>byte</code> value that is equal to <code>value</code>, if possible.
220 <DT><B>Parameters:</B><DD><CODE>value</CODE> - any value in the range of the <code>byte</code> type
221 <DT><B>Returns:</B><DD>the <code>byte</code> value that equals <code>value</code>
223 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>value</code> is greater than <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Byte.html?is-external=true#MAX_VALUE" title="class or interface in java.lang"><CODE>Byte.MAX_VALUE</CODE></A> or less than <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Byte.html?is-external=true#MIN_VALUE" title="class or interface in java.lang"><CODE>Byte.MIN_VALUE</CODE></A></DL>
233 <DD>Returns the <code>byte</code> nearest in value to <code>value</code>.
236 <DT><B>Parameters:</B><DD><CODE>value</CODE> - any <code>long</code> value
237 <DT><B>Returns:</B><DD>the same value cast to <code>byte</code> if it is in the range of the
238 <code>byte</code> type, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Byte.html?is-external=true#MAX_VALUE" title="class or interface in java.lang"><CODE>Byte.MAX_VALUE</CODE></A> if it is too large,
239 or <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Byte.html?is-external=true#MIN_VALUE" title="class or interface in java.lang"><CODE>Byte.MIN_VALUE</CODE></A> if it is too small</DL>
250 <DD>Compares the two specified <code>byte</code> values. The sign of the value
251 returned is the same as that of <code>((Byte) a).compareTo(b)</code>.
254 <DT><B>Parameters:</B><DD><CODE>a</CODE> - the first <code>byte</code> to compare<DD><CODE>b</CODE> - the second <code>byte</code> to compare
255 <DT><B>Returns:</B><DD>a negative value if <code>a</code> is less than <code>b</code>; a positive
256 value if <code>a</code> is greater than <code>b</code>; or zero if they are equal</DL>
266 <DD>Returns the least value present in <code>array</code>.
269 <DT><B>Parameters:</B><DD><CODE>array</CODE> - a <i>nonempty</i> array of <code>byte</code> values
270 <DT><B>Returns:</B><DD>the value present in <code>array</code> that is less than or equal to
273 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>array</code> is empty</DL>
283 <DD>Returns the greatest value present in <code>array</code>.
286 <DT><B>Parameters:</B><DD><CODE>array</CODE> - a <i>nonempty</i> array of <code>byte</code> values
287 <DT><B>Returns:</B><DD>the value present in <code>array</code> that is greater than or equal to
290 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>array</code> is empty</DL>
301 <DD>Returns a string containing the supplied <code>byte</code> values separated
302 by <code>separator</code>. For example, <code>join(":", 0x01, 0x02, -0x01)</code>
303 returns the string <code>"1:2:-1"</code>.
306 <DT><B>Parameters:</B><DD><CODE>separator</CODE> - the text that should appear between consecutive values in
307 the resulting string (but not at the start or end)<DD><CODE>array</CODE> - an array of <code>byte</code> values, possibly empty</DL>
317 <DD>Returns a comparator that compares two <code>byte</code> arrays
318 lexicographically. That is, it compares, using <A HREF="../../../../com/google/common/primitives/SignedBytes.html#compare(byte, byte)"><CODE>compare(byte, byte)</CODE></A>), the first pair of values that follow any common
320 array as the lesser. For example, <code>[] &lt; [0x01] &lt; [0x01, 0x80] &lt;
321 [0x01, 0x7F] &lt; [0x02]</code>. Values are treated as signed.
323 <p>The returned comparator is inconsistent with <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"><CODE>Object.equals(Object)</CODE></A> (since arrays support only identity equality), but
324 it is consistent with <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Arrays.html?is-external=true#equals(byte[], byte[])" title="class or interface in java.util"><CODE>Arrays.equals(byte[], byte[])</CODE></A>.