byte.html
来自「API資料大全」· HTML 代码 · 共 737 行 · 第 1/3 页
HTML
737 行
<BR> Assuming the specified String represents a byte, returns that byte's value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> short</CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/Byte.html#shortValue()">shortValue</A></B>()</CODE><BR> Returns the value of this Byte as a short.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/Byte.html#toString()">toString</A></B>()</CODE><BR> Returns a String object representing this Byte's value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/Byte.html#toString(byte)">toString</A></B>(byte b)</CODE><BR> Returns a new String object representing the specified Byte.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/Byte.html">Byte</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/Byte.html#valueOf(java.lang.String)">valueOf</A></B>(<A HREF="../../java/lang/String.html">String</A> s)</CODE><BR> Assuming the specified String represents a byte, returns a new Byte object initialized to that value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../java/lang/Byte.html">Byte</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../java/lang/Byte.html#valueOf(java.lang.String, int)">valueOf</A></B>(<A HREF="../../java/lang/String.html">String</A> s, int radix)</CODE><BR> Assuming the specified String represents a byte, returns a new Byte object initialized to that value.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="MIN_VALUE"><!-- --></A><H3>MIN_VALUE</H3><PRE>public static final byte <B>MIN_VALUE</B></PRE><DL><DD>The minimum value a Byte can have.</DL><HR><A NAME="MAX_VALUE"><!-- --></A><H3>MAX_VALUE</H3><PRE>public static final byte <B>MAX_VALUE</B></PRE><DL><DD>The maximum value a Byte can have.</DL><HR><A NAME="TYPE"><!-- --></A><H3>TYPE</H3><PRE>public static final <A HREF="../../java/lang/Class.html">Class</A> <B>TYPE</B></PRE><DL><DD>The Class object representing the primitive type byte.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Byte(byte)"><!-- --></A><H3>Byte</H3><PRE>public <B>Byte</B>(byte value)</PRE><DL><DD>Constructs a Byte object initialized to the specified byte value.<DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the initial value of the Byte</DL></DD></DL><HR><A NAME="Byte(java.lang.String)"><!-- --></A><H3>Byte</H3><PRE>public <B>Byte</B>(<A HREF="../../java/lang/String.html">String</A> s) throws <A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></PRE><DL><DD>Constructs a Byte object initialized to the value specified by the String parameter. The radix is assumed to be 10.<DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the String to be converted to a Byte<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></CODE> - If the String does not contain a parsable byte.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="toString(byte)"><!-- --></A><H3>toString</H3><PRE>public static <A HREF="../../java/lang/String.html">String</A> <B>toString</B>(byte b)</PRE><DL><DD>Returns a new String object representing the specified Byte. The radix is assumed to be 10.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - the byte to be converted<DT><B>Returns:</B><DD>the string representation of the specified <code>byte</code></DL></DD></DL><HR><A NAME="parseByte(java.lang.String)"><!-- --></A><H3>parseByte</H3><PRE>public static byte <B>parseByte</B>(<A HREF="../../java/lang/String.html">String</A> s) throws <A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></PRE><DL><DD>Assuming the specified String represents a byte, returns that byte's value. Throws an exception if the String cannot be parsed as a byte. The radix is assumed to be 10.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the String containing the byte<DT><B>Returns:</B><DD>the parsed value of the byte<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></CODE> - If the string does not contain a parsable byte.</DL></DD></DL><HR><A NAME="parseByte(java.lang.String, int)"><!-- --></A><H3>parseByte</H3><PRE>public static byte <B>parseByte</B>(<A HREF="../../java/lang/String.html">String</A> s, int radix) throws <A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></PRE><DL><DD>Assuming the specified String represents a byte, returns that byte's value. Throws an exception if the String cannot be parsed as a byte.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the String containing the byte<DD><CODE>radix</CODE> - the radix to be used<DT><B>Returns:</B><DD>the parsed value of the byte<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></CODE> - If the String does not contain a parsable byte.</DL></DD></DL><HR><A NAME="valueOf(java.lang.String, int)"><!-- --></A><H3>valueOf</H3><PRE>public static <A HREF="../../java/lang/Byte.html">Byte</A> <B>valueOf</B>(<A HREF="../../java/lang/String.html">String</A> s, int radix) throws <A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></PRE><DL><DD>Assuming the specified String represents a byte, returns a new Byte object initialized to that value. Throws an exception if the String cannot be parsed as a byte.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the String containing the integer<DD><CODE>radix</CODE> - the radix to be used<DT><B>Returns:</B><DD>the <code>Byte</code> instance representing the parsed <code>byte</code> value<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></CODE> - If the String does not contain a parsable byte.</DL></DD></DL><HR><A NAME="valueOf(java.lang.String)"><!-- --></A><H3>valueOf</H3><PRE>public static <A HREF="../../java/lang/Byte.html">Byte</A> <B>valueOf</B>(<A HREF="../../java/lang/String.html">String</A> s) throws <A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></PRE><DL><DD>Assuming the specified String represents a byte, returns a new Byte object initialized to that value. Throws an exception if the String cannot be parsed as a byte. The radix is assumed to be 10.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the String containing the integer<DT><B>Returns:</B><DD>the <code>Byte</code> instance representing the parsed <code>byte</code> value<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></CODE> - If the String does not contain a parsable byte.</DL></DD></DL><HR><A NAME="decode(java.lang.String)"><!-- --></A><H3>decode</H3><PRE>public static <A HREF="../../java/lang/Byte.html">Byte</A> <B>decode</B>(<A HREF="../../java/lang/String.html">String</A> nm) throws <A HREF="../../java/lang/NumberFormatException.html">NumberFormatException</A></PRE><DL><DD>Decodes a <code>String</code> into a <code>Byte</code>. Accepts decimal, hexadecimal, and octal numbers, in the following formats: <pre> [-] decimal constant [-] 0x hex constant [-] # hex constant [-] 0 octal constant </pre> The constant following an (optional) negative sign and/or "radix specifier" is parsed as by the <code>Byte.parseByte</code> method
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?