假如一个对象的方法需要报告一个错误,这时一个返回码需要用到。
If an object method needs to report an error, then a return code should be used.
有时候,系统管理员希望实施不同的安全策略,这时就可能需要修改或替换身份验证方法。
At times, the authentication methodologies may need modification or replacement when system administrators want to enforce different security policies.
这时,我已经建立方法与协作方面之间的一对一依赖关系。
At this point I've established a one-to-one dependency between methods and the collaborating aspect.
这时,我们可以使用多种方法来查看刚才创建的状态机实例。
At this point, there are a number of ways to look at the state machine instance we just created.
这时,让听众投入是更加合适的方法。
There are other more appropriate ways of getting your audience engaged.
这时,getNow方法调用的响应只返回日期,而不是日期和时间,如图3 所示。
This time, the response for the getNow method call should only return the date and not the date and time, as shown in Figure 3.
这个方法不返回任何结果,但是如果调用线程关联了一个事务,那么这时就征募托管连接的XAResource。
This method returns nothing, but if a transaction is associated with the calling thread, the XAResource from the managed connection is enlisted at that point.
这时您可以用代码补全功能,为Vectornames 增加适当的方法。
You can use code completion to locate the proper method for adding items to the Vector names.
这时我见过的最有效的利用阅读时间的方法。
这一方法指的是将目光集中在恒星上,当行星从恒星前经过时产生的引力将会使光线弯曲,这时就会得到关于详细情况的报告。
The idea would be to stare at a distant star and report instances when its light had been bent by the gravity of a planet passing in front of it.
这时,标准的TDD方法是停止测试并且开始进行修改直到测试通过。
The normal TDD approach at this point is to stop testing and start fixing until the test passes.
有了清单11中编写的新的行为方法之后,现在可以来运行它 —但是这时会产生一个错误,如清单 13 所示。
With the new behavior method coded in Listing 11, it's time to run it — but doing so indicates a failure, as shown in Listing 13.
即使你的团队采取的方法别出蹊径,但在大多数时候,总是由你来负责管理编码方式,这时就是运用重构的时机。
Even if your team has a different methodology, most of the time you are the one in charge of the way you code, and this is where refactoring comes along.
我们这里所采用的方法将去除了在第一个方面的需要,因为这时我们已经将XML作为一个直接使用的本机对象,而不用再次的映射操作。
The approach we take here removes the need for the whole first aspect because, instead of mapping the XML into native objects, we have made the XML a native object that can be used as is.
到目前为止,没有什么是听起来不可管理的,但您要认识到有时方法中的不匹配是无意的,这时情况就会有所变化。
None of this sounds unmanageable so far, but that will change when you realize that sometimes a mismatch in methods is unintentional.
这时候最好的解决方法莫过于:调整你的风帆,不要试着改变风向。
The best way to combat this is found in this phrase: Rather than trying to adjust the wind, adjust your sails.
这时你将你的精力放在从积极点的事情里寻找答案,因为找些方法帮助其他人。
As your mind searches for the answers to that question you're going to be focused on positive things, because you're looking for a way to help someone else.
这时单元测试会无法通过,我将会实现测试所针对的方法,最终让单元测试可以绿灯通过。
The tests will fail, I'll implement the methods, and gradually they'll go green again.
沿着正确的道路走下去,你一定会得到回报,这时,你的朋友、亲戚或许仍纠结于尝试市场上各类“大突破式”的减肥方法。
It will all pay off when you are losing weight the healthy way and your friends and relatives that are still trying all the new so called "breakthroughs" on the market are still struggling.
在家中尽量少使用金属物件也是一个减少电磁暴露的好方法,这时的金属物件就是一个导体。
Minimizing metal in the home can also reduce exposure as it tends to act as a conductor.
平时我们生活得很好,直到它发了炎,产生剧痛。 这时,唯一的治疗方法就是动手术把它切除,然后我们又继续快乐地的生活。
Everyone lives happily with it until it becomes painfully inflamed, when the only treatment is to remove it surgically.
但是问题是,有时候我们并不能解出x,y,因为这个关系方程g太复杂了,这时必须要有一个新的方法,现在就是要研究这个方法。
z The problem is sometimes you cannot actually solve for x, y, z in here because this condition is too complicated and then we need a new method. That is what we are going to do.
这时新的offer方法就可以起作用了。
到了这时候,我想最好的方法是转移她的注意力,就指着旁边一棵树上的一个大洞说:“我好像看见一只大松鼠跳进那个洞里了,我们去看看吧。”
At this point, I thought it best to distract her and pointed to a big hole in a nearby tree, "I think I saw a big squirrel jump in that hole, let's go look."
这时,您将编写这些方法的实现并学习MessageContext是如何被使用的。
In a moment, you will write implementations of these methods and learn how the MessageContext can be used.
内容助手这时会在旁边提示:不幸的是,在rowdoc后键入句点并没有出现方法列表,因为编辑器不知道rowdoc的类型。
An aside here on content assist: Unfortunately, typing a period after rowdoc does not bring up a list of methods because the editor does not know the type of rowdoc.
请注意invoke()方法被覆盖成可以接受一个Object实例(如清单4 所示)或一个Class(这时期望的private 方法也是 static 的)。
Note that the invoke() method is overridden to either take an Object instance, as in Listing 4, or a Class, in the case that the desired private method is also static.
这时会出现一个对话框,要求输入这个新方法的名称及可见性(公开的、私有的、保护的或是默认的)。
A dialog box displays, requesting the name and visibility (public, private, protected, or default) of the new method.
最后一个事件将会发生于每一个控件之上,然后,一直到结束.这时,所有的控件将会输出流并且不能够再被改变.在这个事件中,任何试图访问应答流的方法将都会出现错误.这个事件主要被用来清除善后工作,比如说数据库连接,打开的文件流,事件日志,或者其他的任务等等.
At this point, all controls have been rendered to the output stream and cannot be changed. During this event any attempt to access the response stream will result in an exception being thrown.
检查是否有眼疲劳。方法是将手放在前额呈敬礼状。如果这时候你的眼睛感到放松,那么你的办公空间就太明亮了。
Check for eyestrain by putting your hand to your forehead in a salute. If your eyes feel relieved, your work space is too bright.
应用推荐