Class ObjectReaderImplValue<I,T>

java.lang.Object
com.alibaba.fastjson2.reader.ObjectReaderImplValue<I,T>
All Implemented Interfaces:
ObjectReader<T>

public class ObjectReaderImplValue<I,T> extends Object implements ObjectReader<T>
  • Constructor Details

  • Method Details

    • readJSONBObject

      public T readJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
      Description copied from interface: ObjectReader
      Reads an object from JSONB format.
      Specified by:
      readJSONBObject in interface ObjectReader<I>
      Parameters:
      jsonReader - the JSONReader to use for parsing
      fieldType - the type of the field being read
      fieldName - the name of the field being read
      features - the features to use
      Returns:
      the deserialized object
    • readObject

      public T readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features)
      Description copied from interface: ObjectReader
      Reads an object from the specified JSONReader with the given field type, field name, and features.
      Specified by:
      readObject in interface ObjectReader<I>
      Parameters:
      jsonReader - the JSONReader to use for parsing
      fieldType - the type of the field being read
      fieldName - the name of the field being read
      features - the features to use
      Returns:
      the deserialized object
    • of

      public static <I, T> ObjectReaderImplValue<I,T> of(Class<T> objectClass, Class<I> valueClass, Method method)
    • of

      public static <I, T> ObjectReaderImplValue<I,T> of(Class<T> objectClass, Class<I> valueClass, Function<I,T> function)