填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

KeyValueDifferFactory

提供 KeyValueDiffer的工厂。

Provides a factory for KeyValueDiffer.

      
      interface KeyValueDifferFactory {
  supports(objects: any): boolean
  create<K, V>(): KeyValueDiffer<K, V>
}
    

方法

测试看此差分器是否知道如何区分这种对象。

Test to see if the differ knows how to diff this kind of object.

      
      supports(objects: any): boolean
    
参数
objects any
返回值

boolean

创建一个 KeyValueDiffer

Create a KeyValueDiffer.

      
      create<K, V>(): KeyValueDiffer<K, V>
    
参数

没有参数。

返回值

KeyValueDiffer<K, V>