Interface JsonAdapterRegistry.AdapterFactory
- Enclosing class:
JsonAdapterRegistry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Adapter factory interface for dynamic adapter creation.
动态适配器创建的适配器工厂接口。
- Since:
- JDK 25, opencode-base-json V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionCreates an adapter for the given type.
-
Method Details
-
create
Creates an adapter for the given type. 为给定类型创建适配器。- Parameters:
type- the type - 类型- Returns:
- the adapter, or null if not supported - 适配器,如果不支持则返回 null
-