码迷,mamicode.com
首页 > Windows程序 > 详细

API: Thread - String

时间:2020-04-21 15:12:08      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:mil   api   thread   class   interrupt   code   nal   except   har   

Thread 

public static void sleep(long millis, int nanos)
    throws InterruptedException {
        if (millis < 0) {
            throw new IllegalArgumentException("timeout value is negative");
        }

        if (nanos < 0 || nanos > 999999) {
            throw new IllegalArgumentException(
                                "nanosecond timeout value out of range");
        }

        if (nanos >= 500000 || (nanos != 0 && millis == 0)) {
            millis++;
        }

        sleep(millis);
    }
public static native void sleep(long millis) throws InterruptedException;

 

String 

public final class String
    implements java.io.Serializable, Comparable<String>, CharSequence
public String(byte bytes[]) {
        this(bytes, 0, bytes.length);
    }
public byte[] getBytes() {
return StringCoding.encode(value, 0, value.length);
}

 

API: Thread - String

标签:mil   api   thread   class   interrupt   code   nal   except   har   

原文地址:https://www.cnblogs.com/hoper2020/p/12744454.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!