By adding a wrapper class, you have broken subtype polymorphism.
通过添加包装程序类,您打破了子类型的多态性。
Listing 2 shows the code for the database wrapper class.
清单2显示了这个数据库封装类的代码。
So ButterflyFile provides a standard wrapper class around a file.
因此,ButterflyFile提供了一个针对文件的标准封装类。
In the second procedure, you define this wrapper class manually.
在第二个程序中,您要手动定义这个包装函式类别。
It's nearly impossible to find good examples of a window wrapper class.
这几乎是不可能找到一个窗口的包装类的好例子。
Listing 11 is a wrapper class that can generate a complete XML encrypted file.
清单11是一个能够生成完整X ML加密文件的封装器类。
A DataObjectPtr is really a wrapper class holding a pointer to the DataObject.
DataObjectPtr实际上是包含指向数据对象的指针的包装类。
The wrapper class implements the Fulfillment interface I described earlier.
包装程序类实现了我早先描述的Fulfillment接口。
Primitive float type and wrapper class float have different comparison behavior.
基本浮点类型和包装类浮点有不同的比较行为。
Wrap the IoC bean in a wrapper class, which can communicate with the Axis2 framework.
将IoCbean打包在一个能够与Axis2架构通信的包装类中。
The control's wrapper class should be the control name prefixed by the letter c.
控制项的包装函式类别应为该控制项的名称前面加上字母c。
Enhance the bean definition in the Spring configuration file to reflect the wrapper class.
加强Spring配置文件中的bean的定义,以反射包装类。
Listing 9 shows the wrapper class, which is named RepositoryWrapper in the sample application.
清单9给出了这个包装器类,在示例应用程序中称为RepositoryWrapper。
The wrapper class also handles XSL transformations, namespaces and schema validation if needed.
包装器类还在必要时处理xsl转换、名称空间和模式检验。
We created a wrapper class, called HeaderCell to distinguish a header cell form a content cell.
我们创建一个称为HeaderCell的包装器类,用于区分标题栏单元格和内容单元格。
This wrapper class drops its connection to the DataObject when it goes out of scope, or gets nulled.
此包装类会在超出范围或设置为空时丢弃其到数据对象的连接。
Any access to the data repository is made through a thread-safe wrapper class named RepositoryWrapper.
对数据存储库的所有访问都是通过一个名为RepositoryWrapper的线程安全类实现的。
If you need a wrapper class, use class View to create one (for more information, see Adding a class).
如果需要包装类,请使用类视图创建(有关更多信息,请参见添加类)。
However, if you want to modify the control's behavior, you can write a wrapper class for the control.
不过,若要修改控制项的行为,您可为该控制项撰写包装函式类别。
Like the wrapper class, this technique fulfills your requirements, but it comes with its own disadvantages.
像包装程序类一样,虽然此技术满足了您的需要,但是有其自己的缺点。
The wrapper class would take care of formatting the arguments into an XML string resembling the code above.
该包装类将参数格式化为类似上面代码的XML字符串。
A wrapper class hides the calls to the low-level Win32 functions and provides a comfortable generic interface.
包装类隐藏了对底层Win32函数的调用并提供了一种舒适的通用接口。
For example, the lifeline of a wrapper class should probably be right next to the lifeline of the wrapped class.
例如,包裹类的生命线可能会靠近包裹类的生命线。
If you want more detailed control over your Settings, you can define your own custom applications Settings wrapper class.
如果要对设置进行更细致的控制,您可以定义自己的自定义应用程序设置包装类。
As the following illustration shows, the perspective of the calling code determines which wrapper class the runtime creates.
如下图所示,呼叫程序码的观点将决定执行阶段会建立哪一种包装函式类别。
To make matters worse, the rules for comparing NaN and -0 are different between the primitive float type and the wrapper class float.
使事情更糟的是,在基本float类型和包装类float之间,用于比较NaN和- 0的规则是不同的。
Autoboxing: Rather than generating calls to the valueOf method in the wrapper class, the compiler generates calls to the constructor instead.
自动装箱:编译器不生成对包装器类的value Of方法的调用,而是生成对构造函数的调用。
A single driver script connects the front end to the back end, and another wrapper class on the front end gives you access to all the tables you need.
单个驱动程序脚本连接前端和后端,前端上的另一个包装类向您提供对所有所需表的访问权。
If you need another data type such as integer, floating point, or Boolean value, you will have to parse the string using the appropriate wrapper class.
如果需要其他的数据类型,比如说整数、浮点数或者布尔值,必须使用相应的包装器类来解析字符串。
Now you can create the appropriate Web services artifacts based on this wrapper class, which internally USES the existing collection-based implementation.
现在,我们可以基于这个包装器类来创建适当的Web服务构件了,它在内部使用现有的基于集合的实现。
应用推荐