Always construct objects in a valid state.
总是构建状态有效的对象。
The Save button is disabled until the form is in a valid state.
表单验证通过之前,保存按钮是禁用的。
For a given event, you use conditions to determine the new valid state.
对于一个给定事件,使用各种条件来决定新的有效状态。
In most part, a valid state is controlled by the validation in our code.
在大多数情况下,有效状态由代码中的检验控制。
Determines if the operation is valid for the current state.
确定操作对于当前状态是否有效。
Determines if the operation is valid for the current state.
确定操作对于当前状态是否有效。
应用推荐