As you can see, the class methods are simple.
正如您所见,类方法非常简单。
Now it's time to add the class methods that form the DSL.
现在让我们添加形成DSL的类方法。
It also hides all base class methods with the same signature.
同时也隐藏具有相同签名的所有基类方法。
With the new collection class methods, this has been simplified to.
如果使用新的集合类方法,上面的代码就被简化为。
In contrast, class methods do not require you to create an instance.
相反,类方法不需要您创建一个示例。
On the other hand, you may want to override certain base-class methods.
另一方面,您也可能想重写某些基类方法。
The same concept can be used with functions, or even class methods, as shown below.
这也适用于函数,甚至是类方法,如下所示。
For example, you may extend a class to change the behavior of the base-class methods.
例如,您可能会扩充一个类别以变更基底类别方法的行为。
Any behavior of the class must be implemented as protocol methods.
类的任何行为都必须作为协议方法实现。
Use the static methods in the class and you’re ready to go.
你只需使用类中的静态方法就可以完成想要的功能。
You can create these magic methods in a class for a variety of action types.
可以在一个类中为各种不同的动作创建这些魔术方法。
Each class will have all the methods that will fetch the information about a resource.
每个类都有将获取关于一个资源的信息的所有方法。
Once you have your test class, the real action happens in your test methods.
一旦创建好测试类之后,测试方法中要有实际的动作。
We will be building up the methods of this class as the article proceeds.
随着本文的继续展开,我们将构建这个类的方法。
The same prefix can reference several different static methods in the same class.
在同一个类中,相同的前缀可以引用多个不同的静态方法。
Can I pull more methods from the child into the generic parent class?
是否还能把更多的方法从子类提升到通用的父类中?
First, there are methods that take an explicit source class name and source method name.
第一种类型的方法包含代表源文件名称及方法名称的参数。
Put simply, methods are functions declared within a class.
简单地说,方法是在类中声明的函数。
Here are brief descriptions of some support methods in the class.
这里简单描述了类的一些支持方法。
An annotation applied on a class is applicable to all the methods in the class.
应用于类的注释适用于类中的所有方法。
For example, methods, functions, a class, or a module of complex logic might be identified.
例如,它将bug目标锁定为方法、函数、类或包含复杂逻辑的模块。
This short class wraps each of the five methods on the back end.
这个简短的类将上述5 个方法中的每一个封装到后端上。
To complete our mediation we need to add two more helper methods to our class.
要完成我们的中介,需要再向我们的类添加两个Helper方法。
In the customer class, two different find methods are offered.
在客户类中,提供了两个不同的find方法。
Create these methods inside the class delegate.
在delegate类中创建这些方法。
After adding the field, I add the four necessary methods for the class being constructed.
在添加字段之后,我为构建的类添加了4个必要方法。
Note the two display methods in the Library class.
请注意Library类中的两个显示方法。
The BusinessLogicBase class has methods to store and receive data from the Distributed Map.
businesslogicbase类具有在分布式映射缓存存储和接收数据的方法。
We can use either of two methods on the java.nio.Files class to start the tree traversal.
我们可以利用两个方法中的任何一个在类上启动树遍历。
Recall that the methods of the Vector class are nearly all synchronized.
回想一下,vector类的方法几乎都是同步的。
应用推荐