You can check the methods from the class that will be declared in the interface.
可以复选来自这个类且要在此接口内声明的那些方法。
Reflection is the runtime discovery of information, such as methods, fields, and constructors, about a given class or interface.
反射是运行时发现的关于给定类或接口的信息,如方法、字段和构造函数。
It wraps an internal pull parser interface in an unmarshalling context class that defines a variety of element and attribute access methods.
它将内部拉出解析器接口包装在定义各种元素和属性访问方法的数据编出上下文类中。
We implemented this class to provide some common methods and to hide the details of the SNMP interface.
我们实现这个类来提供一些公共方法并隐藏SNMP接口的细节。
Care must be taken to ensure that methods declared in the remote interface are actually implemented in the EJB remote implementation class.
必须注意要确保在EJB远程实现类中实际实现了远程接口中声明的方法。
For example, utility methods on the implementation class don't have to exist on the remote interface.
例如,实现类的实用程序方法不必放在远程接口上。
With the interface written, you are ready to write the client class that calls the methods that the interface exposes.
接口编写好后,准备编写调用该接口公开的方法的客户端类。
The problem with using classes for structured data is that each class has its own distinct interface for accessing that data, typically through getter/setter methods.
将类用于结构化数据的问题就是为了访问此数据每一个类都有其自己不同接口,通常通过getter/setter 方法。
Using introduction, aspects can add new methods and variables to a class, declare that a class implements an interface, or convert checked to unchecked exceptions.
使用引入(Introduction),Aspect可以向类中添加新的方法和变量、声明一个类实现一个接口或将检查异常转换为未检查异常(unchecked exception)。
The interface class, shown in Listing 5 (slightly reformatted, and with only one method comment left in as an example), defines the methods matching operations defined in the WSDL.
接口类,如清单5(稍微进行了重新格式化,并且只保留了一个方法注释)所示,定义了与WSDL中的操作匹配的方法。
To ensure that your implementation is thread-safe, a class that implements this interface should use either the synchronized keyword on the methods or synchronized blocks within the methods.
为了确保实现是线程安全的,实现该接口的类应该在方法上使用synchronized关键字,或者在方法内部使用同步锁。
You could have your FixedList class implement the List interface as well, but then you are faced with the unsavory task of providing an implementation for all of the List methods.
您也可以让您的FixedList类实现List接口,但是您需要面对一项烦人的工作:为所有 List 方法提供一个实现。
The interface class is the one with Public methods that Web service clients can call.
接口类就是具有Public方法的类,Web服务客户机可以调用 Public 方法。
Create a new class in Eclipse (call it MockConection) that implements the Connection interface. Check the option to generate stubs for inherited abstract methods (see Figure 2).
在Eclipse中创建一个完成Connection接口的新类(称它为MockConection),检查为继承的抽象方法产生桩模块的选项(见图2)。
Distance;. And interface is also supported for creating member properties and methods that may be common to more than one class; a class implements an interface just as you'd expect.
同时接口也支持创建用户属性和多个类的公用方法;还有如人们所期待的那样一个类实现一个接口。
In this new class, we only need to complete the pre-generated methods that were inherited from interface IContentAssistProcessor.
在这个新类中,我们只需完成从接口icontentassistprocessor继承来的预先生成的方法。
If you are using SAX 1.0, you'll be working with the Parser interface and HandlerBase class, and it will be obvious which methods to use.
如果正在使用SAX 1.0,那么将使用Parser接口和handlerbase类,应该使用哪些方法也很明显。
The most basic OSGi application is shown in Listing 1. It consists of an Activator class that implements the start and stop methods of the BundleActivator interface.
清单1所示的是最基本的OSGi应用程序。它包含一个activator类,该类实现BundleActivator接口的start和stop方法。
The Activator class, illustrated in Listing 10, again implements the BundleActivator interface with its two methods start and stop .
清单10中所示的activator类还是使用start和stop两个方法实现BundleActivator接口。
External Methods tell you the size of the interface of a class.
ExternalMethods告诉您了类界面的规模。
The PortletServiceProvider interface requires you to implement two methods in your class: the init() and destroy() methods.
PortletServiceProvider接口需要在您的类中实现两个方法:init()和destroy() 方法。
The Extract interface refactoring makes an interface out of the methods defined in a class.
ExtractInterface重构可以从一个类的已定义的方法生成一个接口。
The Activator class for the HelloServlet bundle implements the start and stop methods of the BundleActivator interface.
HelloServletbundle的activator类实现BundleActivator接口的start和stop方法。
For each class, I output the class or interface name in an h1 tag and apply templates for the fields, constructors, and methods.
对于每个类,我在h1标签中输出类或接口的名称,并为fields、constructors和methods应用模板。
To develop a CustomService, you need to create a class that implements the com.ibm.websphere.runtime.CustomService interface. This interface has two methods.
为了开发CustomService,您需要创建实现com . ibm . websphere . runtime. CustomService接口的类。
The class provides a basic skeleton of all the methods defined in the service interface.
此类为在服务接口中定义的所有方法提供了一个基本框架。
You can use extension methods to extend a class or interface, but not to override them.
您可以使用扩展方法来扩展一个类或接口,但不是来覆盖。
A handler has to be created for these events by either implementing an interface or extending the DefaultHandler class and overriding its methods as needed.
必须通过实现接口或者扩展DefaultHandler类并根据需要重写它的方法,创建这些事件的handler。
The Appointment class containing most of the fluent-interface methods appears in Listing 2.
Appointment类包含清单2中出现的大部分连贯接口方法。
Each rule class implements the RuleImplementor interface which includes two methods: fire and init.
每个规则类都实现了Rule Implementor接口,该接口包含两个方法:fire和init。
应用推荐