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

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

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

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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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


AtomicLongjava.util.concurrent.atomic

Java 5.0serializable

This threadsafe class holds a mutable
long value and defines atomic operations on that
value. It behaves just like AtomicInteger, with
the substitution of long for
int.


Figure 16-100. java.util.concurrent.atomic.AtomicLong

public class

AtomicLong extends Number implements Serializable {
// Public Constructors
public

AtomicLong ( );
public

AtomicLong (long

initialValue );
// Public Instance Methods
public final long

addAndGet (long

delta );
public final boolean

compareAndSet (long

expect , long

update );
public final long

decrementAndGet ( );
public final long

get ( );
public final long

getAndAdd (long

delta );
public final long

getAndDecrement ( ); default:0
public final long

getAndIncrement ( ); default:-1
public final long

getAndSet (long

newValue );
public final long

incrementAndGet ( );
public final void

set (long

newValue );
public final boolean

weakCompareAndSet (long

expect , long

update );
// Public Methods Overriding Number
public double

doubleValue ( );
public float

floatValue ( );
public int

intValue ( );
public long

longValue ( );
// Public Methods Overriding Object
public String

toString ( );
}



    / 1191