For women in the military, the search for equality will still be based on functional equivalence, not identity or even similarity of task.
对于军队中的女性来说,寻求平等仍然是基于功能对等,而不是身份甚至任务上的相似性。
They are value objects, in that their equality is based on the value of their content, not on their identity.
由于它们的等同性是基于它们内容的值的,而不是基于它们的身份的,所以它们是值对象。
You are probably familiar with the concepts of identity and equality.
您可能熟悉相同性(identity)和相等性(equality)的概念。
There are two approaches to defining equality and hash value: identity-based, which is the default provided by Object, and state-based, which requires overriding both equals() and hashCode().
有两种方法来定义对象的相等性和散列值:基于标识,它是 Object提供的缺省方法;基于状态,它要求Overrideequals() 和hashCode() 。
Therefore, for women in the military, the search for equality will still be based on functional equivalence, not identity or even similarity of task.
因此,对于军中的女性来说,对平等的追求仍应建立在职能相等的基础上,而非建立在任务的相同或甚至类似的基础上。
You override instance Equals() for reference types when you want equality to mean something other than object identity. Anytime you override Equals() you implement IEquatable.
当你希望引用类型的相等与对象ID的相等不同时,你应该重载引用类型实例的Equals()。
You override instance Equals() for reference types when you want equality to mean something other than object identity. Anytime you override Equals() you implement IEquatable.
当你希望引用类型的相等与对象ID的相等不同时,你应该重载引用类型实例的Equals()。
应用推荐