public class UnsafeFieldGetter<T> extends Object implements FieldPropGetter<T>
FieldPropGetter. Based on Unsafe.| 构造器和说明 |
|---|
UnsafeFieldGetter(Class<T> clz) |
| 限定符和类型 | 方法和说明 |
|---|---|
<O> Field |
getField(Function<T,O> invoke)
Get
Field from invocation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropName, getPropName, getPropType, getPropType, supportFieldInvokegetFieldName, getFieldTypepublic UnsafeFieldGetter(Class<T> clz) throws IllegalStateException, IllegalArgumentException
clz - IllegalStateException - If construct the mock object failed.IllegalArgumentException - If the class is not suitable. See the class doc.public <O> Field getField(Function<T,O> invoke)
FieldGetterField from invocation.getField 在接口中 FieldGetter<T>Copyright © 2018. All rights reserved.