T - public class UnsafeFieldGetter<T> extends Object implements FieldGetter<T>
Unsafe.| 构造器和说明 |
|---|
UnsafeFieldGetter(Class<T> clz) |
| 限定符和类型 | 方法和说明 |
|---|---|
Field |
get(java.util.function.Function<T,?> invoke) |
boolean |
supportFieldInvoke()
Whether the direct field invoke is supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getTypenameOf, typeOfpublic 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 boolean supportFieldInvoke()
PropertyGetter
PropertyGetter pg = ...;
pg.getName(b -> b.beanProp);
supportFieldInvoke 在接口中 PropertyGetter<T>public Field get(java.util.function.Function<T,?> invoke)
get 在接口中 InvokeGetter<T,Field>Copyright © 2018. All rights reserved.