| Package | Description |
|---|---|
| com.alibaba.fastjson2.introspect |
Provides reflection-based property access functionality for fastjson2.
|
| com.alibaba.fastjson2.writer |
| Modifier and Type | Field and Description |
|---|---|
private ToShortFunction<T> |
PropertyAccessorFactory.FunctionAccessorShortValue.getterFunc |
| Modifier and Type | Method and Description |
|---|---|
ToShortFunction<java.lang.Object> |
PropertyAccessorFactoryLambda.getShort(java.lang.reflect.Method method)
Creates a ToShortFunction functional interface to access a short property via the given getter method.
|
| Modifier and Type | Method and Description |
|---|---|
<T> PropertyAccessor |
PropertyAccessorFactory.create(java.lang.String name,
ToShortFunction<T> getterFunc,
ObjShortConsumer<T> setterFunc)
Creates a property accessor using functional interfaces for short property access.
|
| Constructor and Description |
|---|
FunctionAccessorShortValue(java.lang.String name,
ToShortFunction<T> getterFunc,
ObjShortConsumer<T> setterFunc) |
| Modifier and Type | Method and Description |
|---|---|
<T> FieldWriter |
ObjectWriterCreator.createFieldWriter(java.lang.String fieldName,
ToShortFunction<T> function)
Creates a FieldWriter for the specified function that returns a short value.
|
static <T> FieldWriter |
ObjectWriters.fieldWriter(java.lang.String fieldName,
ToShortFunction<T> function) |