协变是在计算机科学中,描述具有父/子型别关系的多个型别通过型别构造器、构造出的多个复杂型别之间是否有父/子型别关系的用语。
n. covariation
adj. covariant
...extends Animal>来救驾了,只要采用这种形式,就可以赋值了,如例子中第10、11行(对这一现象,TIJ4再次使用了协变(Covariant)这个词,我觉得不太恰当,协变是指一同变化,指的是11行这种形式,ArrayList赋值给List,且类型参数分别是Dog和?
基于32个网页-相关网页
Based upon the requirement of covariance of the geometrical quantities,Guo et al proposed the covariant theory for the prolongation structure by means of the connection theory of fiber bundles,thus making the whole theory covariant.
基于几何量的协变性要求,郭汉英等人通过纤维丛上联络的理论提出了协变的延拓结构理论,从而使得整个理论成为协变的。
参考来源 - 可积反应—扩散方程协变延拓结构的研究·2,447,543篇论文数据,部分数据来源于NoteExpress
协变和逆变的区别对于张量的计算尤为重要,这往往会出现混合方差。
The distinction between covariance and contravariance is important for computations with tensors, which often have mixed variance.
最后就是对协变和逆变的支持了。
即使IList接口不是协变的,一个只读列表接口也理应如此。
And while IList isn't covariant, a read-only list interface would be.
应用推荐