Considering getters and setters.
关于getter和setter。
(Note that I've omitted getters and setters.)
(注意,我删除了其中的getters和setters。)
The early adopters and trend setters are moving away.
早期的采用者和趋势制定者正在逐步流失。
Listing 3. Value and reference semantics for getters and setters.
清单3.getters和setters的值语义以及引用语义。
An arms race has thus developed between cheats and exam setters.
一场军备竞赛已经在作弊者与考方之间展开了。
There are additional array attributes (not just getters and setters).
出现了附加的数组属性(不再只有getter和setter)。
Standard setters hope to reach a definitive set of rules only by 2011.
标准制定者希望2011年前达成一套最终准则。
The bank's rate-setters decided to err on the side of caution, however.
然而,尽管如此,英格兰银行的利率制定者还是决定稳妥行事。
Another reason for obfuscation is to mask differences among rate-setters.
故意令人捉摸不透的另一层原因是要掩盖利率制定者们意见不一。
Those getters and setters should be modified for your own implementation.
您应该为自己的实现修改那些getter和setter。
Spring USES XML configuration and relies on setters for dependency injection.
Spring使用XML配置并且依赖于setter进行依赖注入。
Most of this is just boilerplate code: several fields with getters and setters.
这段代码的大部分都是样本文件代码:几个字段和一些 getter 和 setter 方法。
It's not hard to write tests that cover simple methods like setters and getters.
编写覆盖像setter和getter这样简单方法的测试代码并不难。
As with "regular" descriptors, the idea is to define "getters," "setters," and "deleters".
与 “常规”描述符一样,特性的工作原理就是定义 “getters”、“setters”和 “deleters”。
Creating the dock panel isn't difficult: the setters do what you expect, as Listing 5 shows.
创建停靠面板并不困难:setter会帮助您完成所需的一切工作,如清单5所示。
The prime minister must be praying that Mr King and his fellow rate-setters make the right call.
首相一定在祈祷King先生和他的制定汇率的同事们要做出正确的选择。
Each data object provides read and write access methods (getters and setters) for its properties.
每个数据对象都为属性提供了访问和设置方法(getter和setter)。
You can then use simple getters and setters to retrieve the values of the child elements in the XML.
您可以使用简单的getter和setter检索XML 中子元素的值。
The result is a greatly simplified API, with the collapsing of the many type-specific getters/setters.
结果是通过压缩许多特定于类型的getter/setter,大大简化了API。
Even if they leave procyclicality to bank regulators, standard-setters still have a lot on their plates.
纵然可以把顺周期循环的问题留给银行监管者,会计准则的制定者们依旧有很多值得耗费精力的事情。
In particular, it is not very Pythonic to access data using getters and setters, or other similar methods.
具体地说,使用getter和setter或其他类似的方法来访问数据不太符合Python的习惯。
Accounting rules are under attack. Standard-setters should defend them. Politicians and Banks should back off.
会计规则正在遭受攻击,标准制定者们应当捍卫它,政客与银行应当退开。
Create getters and setters for the four fields by following the method shown in Listing 1 for the symbol field.
按照清单1中显示的用于symbol字段的方法为以上4个字段创建getter和setter。
It has fields corresponding to the database columns and the usual accessors (getters and setters) for each field.
它有与数据库列对应的字段及用于每个字段的常用存取器(getter和setter)。
Various aspects of building classes such as getter and setters, different property types as well as class methods.
构建类的许多方面,例如getter和setter,不同的属性类型和类方法等都被提及。
Last, we extend the setters to call into the functions of the base class to propagate notification of property changes.
最后,我们扩展setters以调用基类的函数,从而传递属性变更通知。
But the principle defence of standard-setters is that enhancing financial stability is not the purpose of accounting.
只是标准制定者的原则性辩护在于,提高金融稳定并非会计的真正意图。
ConfigGetter inherits from ConfigAccessorMethod, shown in Listing 18, which provides support for setters and getters.
如清单18所示,ConfigGetter继承ConfigAccessorMethod,提供对setter和getter的支持。
The MortgageInfo bean is set with the info collected from the Inputs page through the setters on lines 88, 89 and 90.
通过88、89和90行上的设置方法,用从输入页面收集来的信息设置MortgageInfobean。
The MortgageInfo bean is set with the info collected from the Inputs page through the setters on lines 88, 89 and 90.
通过88、89和90行上的设置方法,用从输入页面收集来的信息设置MortgageInfobean。
应用推荐