public class UnsafeUpdater extends Object
| 构造器和说明 |
|---|
UnsafeUpdater() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <U> UnsafeIntegerFieldUpdater<U> |
newIntegerFieldUpdater(Class<? super U> tClass,
String fieldName)
Creates and returns an updater for objects with the given field.
|
static <U> UnsafeLongFieldUpdater<U> |
newLongFieldUpdater(Class<? super U> tClass,
String fieldName)
Creates and returns an updater for objects with the given field.
|
static <U,W> UnsafeReferenceFieldUpdater<U,W> |
newReferenceFieldUpdater(Class<? super U> tClass,
String fieldName)
Creates and returns an updater for objects with the given field.
|
public static <U> UnsafeIntegerFieldUpdater<U> newIntegerFieldUpdater(Class<? super U> tClass, String fieldName)
tClass - the class of the objects holding the field.fieldName - the name of the field to be updated.public static <U> UnsafeLongFieldUpdater<U> newLongFieldUpdater(Class<? super U> tClass, String fieldName)
tClass - the class of the objects holding the field.fieldName - the name of the field to be updated.public static <U,W> UnsafeReferenceFieldUpdater<U,W> newReferenceFieldUpdater(Class<? super U> tClass, String fieldName)
tClass - the class of the objects holding the field.fieldName - the name of the field to be updated.Copyright © 2018. All rights reserved.