| 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 ToByteFunction<T> |
PropertyAccessorFactory.FunctionAccessorByteValue.getterFunc |
| Modifier and Type | Method and Description |
|---|---|
ToByteFunction<java.lang.Object> |
PropertyAccessorFactoryLambda.getByte(java.lang.reflect.Method method)
Creates a ToByteFunction functional interface to access a byte property via the given getter method.
|
| Modifier and Type | Method and Description |
|---|---|
<T> PropertyAccessor |
PropertyAccessorFactory.create(java.lang.String name,
ToByteFunction<T> getterFunc,
ObjByteConsumer<T> setterFunc)
Creates a property accessor using functional interfaces for byte property access.
|
| Constructor and Description |
|---|
FunctionAccessorByteValue(java.lang.String name,
ToByteFunction<T> getterFunc,
ObjByteConsumer<T> setterFunc) |
| Modifier and Type | Method and Description |
|---|---|
<T> FieldWriter |
ObjectWriterCreator.createFieldWriter(java.lang.String fieldName,
ToByteFunction<T> function)
Creates a FieldWriter for the specified function that returns a byte value.
|
static <T> FieldWriter |
ObjectWriters.fieldWriter(java.lang.String fieldName,
ToByteFunction<T> function) |