类 AtomicPositiveInteger
- java.lang.Object
-
- java.lang.Number
-
- com.alibaba.dubbo.common.utils.AtomicPositiveInteger
-
- 所有已实现的接口:
Serializable
public class AtomicPositiveInteger extends Number
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 AtomicPositiveInteger()AtomicPositiveInteger(int initialValue)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intaddAndGet(int delta)bytebyteValue()booleancompareAndSet(int expect, int update)intdecrementAndGet()doubledoubleValue()booleanequals(Object obj)floatfloatValue()intget()intgetAndAdd(int delta)intgetAndDecrement()intgetAndIncrement()intgetAndSet(int newValue)inthashCode()intincrementAndGet()intintValue()longlongValue()voidset(int newValue)shortshortValue()StringtoString()booleanweakCompareAndSet(int expect, int update)
-
-
-
方法详细资料
-
getAndIncrement
public final int getAndIncrement()
-
getAndDecrement
public final int getAndDecrement()
-
incrementAndGet
public final int incrementAndGet()
-
decrementAndGet
public final int decrementAndGet()
-
get
public final int get()
-
set
public final void set(int newValue)
-
getAndSet
public final int getAndSet(int newValue)
-
getAndAdd
public final int getAndAdd(int delta)
-
addAndGet
public final int addAndGet(int delta)
-
compareAndSet
public final boolean compareAndSet(int expect, int update)
-
weakCompareAndSet
public final boolean weakCompareAndSet(int expect, int update)
-
shortValue
public short shortValue()
- 覆盖:
shortValue在类中Number
-
floatValue
public float floatValue()
- 指定者:
floatValue在类中Number
-
doubleValue
public double doubleValue()
- 指定者:
doubleValue在类中Number
-
-