New refactorings - There is a new extract class refactoring, which extracts a group of variables into a class and preserves member access.
新的重构——有一个新的提取类重构功能,它把一组变量提取到一个类中,并且保留了成员访问函数。
I'll want to extract the common elements of performance into an abstract base class.
我想把性能的公共元素提取到一个抽象基类。
The Extract interface refactoring makes an interface out of the methods defined in a class.
ExtractInterface重构可以从一个类的已定义的方法生成一个接口。
Just as I did with the imperative versions, I extract the duplicated code into its own factors class, changing the name of the factors method to of for readability, as shown in Listing 8.
正如我在命令式版本中所做的一样,我将重复的代码提取到其factors类中,并且为便于阅读,将factors方法的名称改为of,如清单8所示。
To reuse object-oriented code, you extract the target code into another class, then use inheritance to access it.
要重用面向对象的代码,您要将目标代码提取(extract)到另一个类中,然后再用继承来访问它。
In Listing 8, a get method provides the interface for users of the Dictionary class to extract a translation.
在清单8中,get方法为Dictionary类的用户提供了提取翻译的接口。
You can use Eclipse's refactoring tools to easily extract an interface from the Person class in Listing 3. Let's call that a Thing.
您可以使用Eclipse的重构工具从清单3中的Person类轻松提取一个接口。
Within the loop, we extract the value for the iterated key, and then we attempt to set that value into the bean through reflection, using the helper function defined in the PBHandler class.
在循环内部,我们为遍历到的键提取值,然后使用在PBHandler中定义的helper函数通过反射将该值放置到bean中。
The PdfTextVerificationPoint class needs to extract the text from the expected and actual PDF files.
PdfTextVerificationPoint类需要从预期的和实际的PD f文件中获取文本。
If you extract it into c: \ temp, for example, this places the source and class files into c: \ temp \ com \ jweb \ test and setclasspth.bat into c: \ temp.
例如,如果把它释放到c: \temp中,那么就要把源文件和类文件放在c: \ temp \com \jweb \test中,而setclasspth . bat则放在c: \ temp中。
These patterns both extract behavior out of the view and into a presentation class coupled with the view.
两种模式都把行为从视图中抽出来,将之放入与视图耦合的一个表现类。
You then dig into this class and extract the constituent elements.
然后深入这个类并提取构成元素。
Example 3: You want to extract the metrics captured for each service class in the SCSTATS logical group into a relational table.
示例3:您想将为SCSTATS逻辑组中每一个服务类捕获的指标提取到关系表中。
If you extract it into c: \ temp, for example, this places the source and class files into c: \ temp \ com \ itext \ test.
例如,如果将其解压缩到c: \temp,则会将源码和类文件放到c: \ temp \com \ itext \ test目录下。
The PDDocument class represents the PDF file, and the PDFTextStripper knows how to extract text from the PDF files.
PDDocument类代表了PDF文件,而 PDFTextStripper知道怎样从 PDF 文件中获取文本。
You need to disassembly the DLL you want to use. Then, extract information about the class you want to use from it.
你需要拆卸你想使用的DLL。然后,提取类你想使用的信息。
Use the class information of training set to build the model, and extract the feature benefit to classification.
利用训练文档的类信息对文本分类模型进行建模,提取对分类贡献较大的特征。
Then, extract information about the class you want to use from it.
然后,提取类你想使用的信息。
Typically you would extract external dependencies from the class you're testing and will swap them with fake ones in your unit test.
通常你会从类中提取外部依赖测试和交换他们的货物用的是伪造的单元测试。你会孤立他们,你感兴趣的部分进行测试。
The nakedflower beautyberry extract is an extract which is extracted from nakedflower beautyberry leaves and contains a nakedflower beautyberry total flavonoid compound and a tannide class compound.
本发明的裸花紫珠提取物是从裸花紫珠叶中提取的含有裸花紫珠总黄酮类化合物和鞣质类化合物的提取物。
Then the decision tree and class association rules mining are used on the video attribute database to extract a decision tree classification rule set and a class association rule set respectively.
然后分别使用决策树、分类关联规则等技术对视频属性数据库进行数据挖掘,提取出决策树分类规则集和分类关联规则集;
SUSAN algorithm is a new class of parallel boundary segmentation algorithm using the USAN principle, covered by the template target pixel to extract the statistical features.
SUSAN算法是一种新兴的并行边界类分割算法,采用USAN原理,通过对模板覆盖像素的统计来提取目标的特征。
The choice of Chemistry activity-class content should be accordance with the principle of interest, rationality, extract and localization.
化学活动课内容的选择,要符合趣味性、合理性、精辟性和地方性原则。
The idea is to extract the core words of class first, then use HowNet to map key words space to concept space based on core words, finally finish the text classification pr.
在此提出一种基于类别核心词的概念映射方法,首先从文本中抽取类别核心词,借助《知网》将特征词映射到基于类别核心词的概念空间,然后在概念空间上完成文本分类工作。
Since the forbidden minor is planar, the class has bounded treewidth, and we can extract a suitable tree decomposition in linear time.
自从禁止未成年人是平面的,该类有界树宽,我们可以提取的线性时间合适的树分解。
Think of this as a 'corkscrew operation', where you 'extract' information from the class.
把这看做“拔瓶塞行为”,这样你就能从课堂上获得信息。
The image segmentation on the background of sea and sky is that extract the target from the background, to search, track, class and identify.
海天背景下目标图像的分割,即把目标从海天背景中提取出来,以便于对目标进行自动地探测、跟踪、分类和识别。
Typically you would extract external dependencies from the class you're testing and will swap them with fake ones in your unit test.
正确的单元测试应该分离的沟通与设备类你想要测试!
Typically you would extract external dependencies from the class you're testing and will swap them with fake ones in your unit test.
正确的单元测试应该分离的沟通与设备类你想要测试!
应用推荐