Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


TimeUnitjava.util.concurrent

Java 5.0serializable comparable enum

The
constants
defined by this enumerated type represent granularities of time.
Timeout and delay specifications throughout the
java.util.concurrent package are specified by a
long value and TimeUnit
constant that specifies the interpretation of that value.

TimeUnit defines conversion methods that convert
values expressed in one unit to values in another unit. More
interestingly, it defines convenient alternatives to
THRead.sleep( ), Thread.join(
), and Object.wait( ).


Figure 16-96. java.util.concurrent.TimeUnit

public enum

TimeUnit {
// Enumerated Constants

NANOSECONDS ,

MICROSECONDS ,

MILLISECONDS ,

SECONDS ;
// Public Class Methods
public static TimeUnit

valueOf (String

name );
public static final TimeUnit[ ]

values ( );
// Public Instance Methods
public long

convert (long

duration , TimeUnit

unit );
public void

sleep (long

timeout ) throws InterruptedException;
public void

timedJoin (Thread

thread , long

timeout ) throws InterruptedException;
public void

timedWait (Object

obj , long

timeout ) throws InterruptedException;
public long

toMicros (long

duration );
public long

toMillis (long

duration );
public long

toNanos (long

duration );
public long

toSeconds (long

duration );
}


Passed To


Too many methods to list.


    / 1191