For example, the ArrayList class should have been defined with a first and last method, but alas it did not. However, it's easy enough to add those methods in Groovy, as shown in Listing 5.
举例来说,应该使用first和last方法来定义arraylist类,不过并未采用这种方式。
First, if you choose good names for the method arguments, then your calls to those methods document each argument with a name.
第一,如果你为方法参数选择了好的名字,那么你对那些函数的调用事实上为每一个参数记载了一个名字。
Method chaining USES return values from methods to relay instruction context, which in this case is the object instance making the first method invocation.
方法链接使用方法的返回值来中转指令上下文,在这种情况下是进行第一个方法调用的对象实例。
The first element of this is Ruby's optional parentheses in method calls; the second part is its use of semi-special naming of methods with symbols that are operators in most languages.
第一个约定是在方法调用中使用 Ruby的圆括号(可选);第二个约定就是使用半专有的方法命名,其中使用了在其他语言中作为运算符的符号。
The first three validates_ methods are Rails built-in methods and the validate method is automatically invoked on any product that will go into the system.
前三个validates _方法是Rails的内嵌方法,对任何进入系统的产品都会自动地调用验证方法。
After the first tiny steps we started to implement the other refactorings Inline method, Rename of methods, variables, fields and classes.
在第一小步之后,我们开始实现其他的重构功能:InlineMethod,重命名方法、变量、属性及类。
Having two methods seems a bit wasteful. It would be nice if we could eliminate the second joiner method and declare that the separator argument in the first joiner has a default value.
写两个函数似乎有点浪费,如果我们能消除第二个joiner方法,在第一个jioner方法里为separator参数声明一个默认值,那就太好了。
Listing 12-1 demonstrated specifying a method in an interface. Figure 12-2 illustrates the first of these method specifications. You can learn more about methods in Chapter 6.
清单12 - 1演示了在接口中指定方法。图12 - 2描述了第一个方法说明。你可以在第6章了解方法的更多内容。
First the methods method is invoked on the string object "hello."
首先,对字符串对象“hello”调用methods方法。
First this paper, these improvements in detail, and accounting methods for example, from the actual situation to illustrate the new accounting method applications.
首先本文对这些改进进行了详细的介绍,并对核算方法进行了举例,从实际的情况来说明新的核算方法的应用。
Use either indentations for the first line of each paragraph (traditional method) or a blank line between paragraphs (modern method), but do not mix both methods.
可以采取每段首行缩进的方式(传统模式),也可以采取每个自然段之间空行的方式(现代模式),但切勿两者混用。
At first, the normal methods for measuring the electromagnetic parameters of the microwave materials, network parameters method, are introduced, and the problems of these methods are discussed.
本文首先介绍了测量微波材料电磁参数的常用方法,即网络参数法,并讨论了该方法存在的一些问题。
This article has taken the next two methods: First, the static research and the dynamic research unify method.
本文采取了下两种研究方法:一是静态研究和动态研究相结合的方法。
The first chapter: the concept of teaching methods, the relationship between the teaching method and essential factors of teaching.
第一章:论述教学方法与教学诸要素的关系,即教学方法的概念。
First, the basic theory and several computation analysis methods of reliability are discussed, and the First Order reliability method (FORM) and Monte-Carlo method are emphasized.
首先介绍了工程结构可靠度理论及分析计算的若干方法,重点阐述了FORM法和蒙特卡罗法。
This paper first analyzes the reason of the aliasing and the common methods for anti aliasing, and then proposes a method for adaptive anti aliasing based on the curvature radius.
摘要从图形走样产生的机理出发,分析了图形学中常用的反走样方法,并在此基础之上针对曲线的特点提出了一种基于曲率半径的自适应反走样方法。
The method USES the DC component and the first harmonic of a curve's chain code expressed by Fourier series to fit the curve, avoiding the inverse calculation of an array used in general methods.
该方法利用闭合曲线的傅立叶级数表示的直流分量和一次分量实现对闭合曲线的椭圆拟合,可以避免通常椭圆拟合方法中的矩阵求逆问题。
Based on the theory of ISAR, using simple maths methods, the method of using arbitrary times polynomial simulation for the nonlinearity testing of LFM signal is studied for the first time.
从基本的ISAR成像知识出发,运用简单的数学方法,首次对用任意次曲线来模拟扫频非线性曲线的方法进行了研究。
The paper discusses the steps and methods of rapidly making multimedia courseware with prototyping by first introducing the prototyping method and then illustrating with a typical example.
文章在介绍原型法的基础上,结合典型实例,介绍了如何利用原型法快速制作多媒体课件的步骤和方法。
First we discuss the structural module method to design the virtual battlefield simulators, then use class module method to discuss reusing methods in the distributed virtual battlefield simulators.
文章首先探讨了虚拟仿真器的结构化模块化设计方法,然后采用类模板设计方法研究分布式作战台位仿真器的可重用设计技术。
This thesis first introduces five widely-used restoration methods of motion-blurred images, especially the restoration method based on traveling wave equation.
本文首先介绍了五种常用的运动模糊恢复方法,重点介绍了利用传播波方程对匀速直线运动引起的图像模糊进行恢复的方法。
In the first chapter, we introduce two methods of sequences comparison, one is the alignment, and the other is the method of the matrix invariant.
在第一章,介绍了序列比较常用的两种方法,一是序列比对算法,二是基于矩阵不变量方法。
Three additional displacement ratio calculating methods, i. e., the first mode method, elastic time history analysis method and calculating plane end displacement method, are suggested.
提出了三种计算结构位移比的补充方法,即第一振型法、弹性时程分析法和推算平面端部位移法。
The testing data were analysed by two methods. The first is specific value flexure method, that is the quotient of the water table variation and ET0 was studied by day serial.
仪器的试验结果采用两种方法进行分析,第一种方法采用比值曲线方法,即将每日仪器水位变化值与参考作物蒸发蒸腾量(ET0)值相比,按日序列研究其变化;
In the first chapter, we introduce linear camera model and some general knowledge and several traditional methods of camera calibration, such as Direct linear Transformation and two-step method etc.
第一章介绍了线性摄像机模型以及摄像机定标的一般性知识和几种常见的传统定标方法,比如直接线性变换方法和两步法等。
In this article, we used the first method to test the stable thermal resistance, and we introduced some testing methods to test the parameters of semiconductor lasers.
本文主要利用第一类方法,对半导体激光器阵列的稳态热阻进行测量,并详细介绍了半导体激光器各个参数的测量方法。
As to the protein fiber and cellulosic fiber, the matchmaker law that after dye the method mainly has matchmaker's decoration methods, dyes first and dyeing laws after the matchmaker first.
对蛋白质纤维和纤维素纤维而言,染色方法主要有无媒染色法、先染后媒法以及先媒后染法。
We first introduce three methods of finding the sum of the first n terms for an arithmetic sequence of higher order, and then display another method by some formal derivatives of which are defined.
首先,简要介绍了三种主要的求和方法。然后,根据高阶等差数列通项的特性,利用新定义的形式导数列对其进行了有效的探讨。
We first introduce three methods of finding the sum of the first n terms for an arithmetic sequence of higher order, and then display another method by some formal derivatives of which are defined.
首先,简要介绍了三种主要的求和方法。然后,根据高阶等差数列通项的特性,利用新定义的形式导数列对其进行了有效的探讨。
应用推荐