📄 system.html
字号:
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ 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="currentTimeMillis()"><!-- --></A><H3>
currentTimeMillis</H3>
<PRE>
public static long <B>currentTimeMillis</B>()</PRE>
<DL>
<DD>Returns the current time in milliseconds.<DD><DL>
<DT><B>Returns:</B><DD>the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.</DL>
</DD>
</DL>
<HR>
<A NAME="arraycopy(java.lang.Object, int, java.lang.Object, int, int)"><!-- --></A><H3>
arraycopy</H3>
<PRE>
public static void <B>arraycopy</B>(<A HREF="../../java/lang/Object.html">Object</A> src, int src_position, <A HREF="../../java/lang/Object.html">Object</A> dst, int dst_position, int length)</PRE>
<DL>
<DD>Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array. A subsequence of array components are copied from the source array referenced by <code>src</code> to the destination array referenced by <code>dst</code>. The number of components copied is equal to the <code>length</code> argument. The components at positions <code>srcOffset</code> through <code>srcOffset+length-1</code> in the source array are copied into positions <code>dstOffset</code> through <code>dstOffset+length-1</code>, respectively, of the destination array. <p> If the <code>src</code> and <code>dst</code> arguments refer to the same array object, then the copying is performed as if the components at positions <code>srcOffset</code> through <code>srcOffset+length-1</code> were first copied to a temporary array with <code>length</code> components and then the contents of the temporary array were copied into positions <code>dstOffset</code> through <code>dstOffset+length-1</code> of the destination array. <p> If <code>dst</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown. <p> If <code>src</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown and the destination array is not modified. <p> Otherwise, if any of the following is true, an <code>ArrayStoreException</code> is thrown and the destination is not modified: <ul> <li>The <code>src</code> argument refers to an object that is not an array. <li>The <code>dst</code> argument refers to an object that is not an array. <li>The <code>src</code> argument and <code>dst</code> argument refer to arrays whose component types are different primitive types. <li>The <code>src</code> argument refers to an array with a primitive component type and the <code>dst</code> argument refers to an array with a reference component type. <li>The <code>src</code> argument refers to an array with a reference component type and the <code>dst</code> argument refers to an array with a primitive component type. </ul> <p> Otherwise, if any of the following is true, an <code>IndexOutOfBoundsException</code> is thrown and the destination is not modified: <ul> <li>The <code>srcOffset</code> argument is negative. <li>The <code>dstOffset</code> argument is negative. <li>The <code>length</code> argument is negative. <li><code>srcOffset+length</code> is greater than <code>src.length</code>, the length of the source array. <li><code>dstOffset+length</code> is greater than <code>dst.length</code>, the length of the destination array. </ul> <p> Otherwise, if any actual component of the source array from position <code>srcOffset</code> through <code>srcOffset+length-1</code> cannot be converted to the component type of the destination array by assignment conversion, an <code>ArrayStoreException</code> is thrown. In this case, let <b><i>k</i></b> be the smallest nonnegative integer less than length such that <code>src[srcOffset+</code><i>k</i><code>]</code> cannot be converted to the component type of the destination array; when the exception is thrown, source array components from positions <code>srcOffset</code> through <code>srcOffset+</code><i>k</i><code>-1</code> will already have been copied to destination array positions <code>dstOffset</code> through <code>dstOffset+</code><i>k</I><code>-1</code> and no other positions of the destination array will have been modified. (Because of the restrictions already itemized, this paragraph effectively applies only to the situation where both arrays have component types that are reference types.)<DD><DL>
<DT><B>Parameters:</B><DD><CODE>src</CODE> - the source array.<DD><CODE>src_position</CODE> - start position in the source array.<DD><CODE>dst</CODE> - the destination array.<DD><CODE>dst_position</CODE> - pos start position in the destination data.<DD><CODE>length</CODE> - the number of array elements to be copied.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IndexOutOfBoundsException.html">IndexOutOfBoundsException</A></CODE> - if copying would cause access of data outside array bounds.<DD><CODE><A HREF="../../java/lang/ArrayStoreException.html">ArrayStoreException</A></CODE> - if an element in the <code>src</code> array could not be stored into the <code>dest</code> array because of a type mismatch.<DD><CODE><A HREF="../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - if either <code>src</code> or <code>dst</code> is <code>null</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="identityHashCode(java.lang.Object)"><!-- --></A><H3>
identityHashCode</H3>
<PRE>
public static int <B>identityHashCode</B>(<A HREF="../../java/lang/Object.html">Object</A> x)</PRE>
<DL>
<DD>Returns the same hashcode for the given object as would be returned by the default method hashCode(), whether or not the given object's class overrides hashCode(). The hashcode for the null reference is zero.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - object for which the hashCode is to be calculated<DT><B>Returns:</B><DD>the hashCode<DT><B>Since: </B><DD>JDK1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getProperty(java.lang.String)"><!-- --></A><H3>
getProperty</H3>
<PRE>
public static <A HREF="../../java/lang/String.html">String</A> <B>getProperty</B>(<A HREF="../../java/lang/String.html">String</A> key)</PRE>
<DL>
<DD>Gets the system property indicated by the specified key.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the name of the system property.<DT><B>Returns:</B><DD>the string value of the system property, or <code>null</code> if there is no property with that key.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/NullPointerException.html">NullPointerException</A></CODE> - if <code>key</code> is <code>null</code>.<DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>key</code> is empty.</DL>
</DD>
</DL>
<HR>
<A NAME="exit(int)"><!-- --></A><H3>
exit</H3>
<PRE>
public static void <B>exit</B>(int status)</PRE>
<DL>
<DD>Terminates the currently running Java application. The argument serves as a status code; by convention, a nonzero status code indicates abnormal termination. <p> This method calls the <code>exit</code> method in class <code>Runtime</code>. This method never returns normally. <p> The call <code>System.exit(n)</code> is effectively equivalent to the call: <blockquote><pre> Runtime.getRuntime().exit(n) </pre></blockquote><DD><DL>
<DT><B>Parameters:</B><DD><CODE>status</CODE> - exit status.<DT><B>See Also: </B><DD><A HREF="../../java/lang/Runtime.html#exit(int)"><CODE>Runtime.exit(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="gc()"><!-- --></A><H3>
gc</H3>
<PRE>
public static void <B>gc</B>()</PRE>
<DL>
<DD>Runs the garbage collector. <p> Calling the <code>gc</code> method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for quick reuse. When control returns from the method call, the Java Virtual Machine has made a best effort to reclaim space from all discarded objects. <p> The call <code>System.gc()</code> is effectively equivalent to the call: <blockquote><pre> Runtime.getRuntime().gc() </pre></blockquote><DD><DL>
<DT><B>See Also: </B><DD><A HREF="../../java/lang/Runtime.html#gc()"><CODE>Runtime.gc()</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/System.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>MID Profile</strong></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../java/lang/StringBuffer.html"><B>PREV CLASS</B></A>
<A HREF="../../java/lang/Thread.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="System.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<font size="-1"><a href="mailto:midp-feedback@risc.sps.mot.com">Submit a comment or suggestion</a> Version 2.0 of MID Profile Specification<br>Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -