No Collection class within java.util fulfills these requirements, but it's trivial to write one.
ut il中没有collection类能满足这些需求,但是编写一个这样的类很简单。
Extend an existing collection class that already implements Iterable (and therefore already supports for/in).
扩展现有的、已经实现了 Iterable(因此也就已经支持for/in)的集合类。
But others will be as simple as writing a custom algorithm or a simple extension to an existing Collection class.
但是另一些则非常简单,只需编写一个定制算法,或者已有collection类的简单的扩展。
For example, a WPF application might implement the IValidationDictionary interface with a simple collection class.
比如说一个WPF应用程序中可能也有一个也实现了IValidationDictionary接口的简单的集合类。
UDDI4J v2 has improved the usability of these classes by adding a set of collection class methods to these classes.
UDDI4 J v 2通过向这些类添加一组集合类方法改进了这些类的可用性。
The collection class must provide methods for setting, accessing, and retrieving the event handler delegate based on the event key.
集合类别必须提供方法,根据事件索引键来设定、存取和撷取事件处理常式委派。
Data: An object; a generic reference that is carried along to listeners; often a collection class (such as a Vector or Hashtable) or a customized data object.
data:一个对象;传递给侦听程序的一般引用;常常是一个集合类(如vector或Hashtable)或一个定制的数据对象。
Through careful creation of your collection class, you could create the ability to fetch groupings of users, but this is a much more technical and specific case.
通过仔细地创建集合类,您可以产生访存用户分组的能力,但这是一种更具技术性、更特殊的情况。
Keeping the reference to the property change listener means the Person POJO has to keep some kind of collection class (such as ArrayList) to contain all the references.
保持引用属性变更监听器意味着PersonPOJO必须保留某种类型的集合类(例如arraylist)来包含所有引用。
As a result, when one of the instances of this class is put into any of the collection classes, the Object.equals version of the method will be used, not the version defined in Bob.
因此,当这个类的一个实例放入到类集合中的任何一个中时,使用的是Object . equals版本的方法,而不是在Bob中定义的版本。
An alternative example might include putting these entries into a collection class or database instead, particularly if a great deal of manipulation were to take place after the parse.
而另一个示例中则是把这些实体放在一个集合类或数据库中,特别是如果有大量的操作都发生在解析之后。
A container is a specialized collection class that allows you to track your components, and manages the interaction of your components with other components and the external application environment.
容器是一种专用的集合类,它使您能够跟踪组件并管理您的组件与其他组件及外部应用程序环境的交互。
This is yet another class that supports sorted collection of objects where each sort key must be unique.
这是另外一个可以支持排序的对象集合的类,其中每个排序键必须是唯一的。
For this example, I found that simply adding a form, deleting the form, and then forcing a garbage collection resulted in many class instances associated with the deleted form to still be alive.
就本例而言,我发现只须添加一个窗体,将它删除,然后强制执行垃圾收集,结果就会导致与被删除窗体相关联的许多类实例仍然处于活动状态。
In an object-oriented system, a class is a collection of data and methods that operate on that data.
作为一个面向对象系统,类是以数据和对数据进行操作的方法的集合。
These statistics dispense data on the basic JVM features, such as Just-In-Time (JIT) compilation, class loading, memory allocation, and most interestingly, garbage collection.
这些统计信息涉及诸如即时 (JIT)编译、类加载、内存分配以及最有趣的垃圾收集之类基本的JVM特性。
A common extension of this idea is to prefill the collection with default values in the constructor of the class.
这种思想的常见扩展是在类的构造函数中预先用缺省值填充该集合。
For a given collection of classes and corresponding filters, a report is generated that outputs a class and its class dependencies (think imports).
对于给定的类和对应的过滤器的集合,会生成一个报告来输出类和类的依赖项(想象一下导入)。
But then, we can also enforce the collection of values that a particular class may hold.
不过现在,我们仍然可以强制搜集某个特定的类所持有的值。
Graph showing JIT compilations, class loader information, and garbage collection.
展示JIT编译、类加载器信息和垃圾收集的图形。
Health Center collects comprehensive method profiles with an extremely low overhead, highlights contended locks, analyzes garbage collection and heap usage, and visualizes class loading activity.
HealthCenter以极低的开销收集广泛的方法摘要,突出显示争用锁,分析垃圾收集和堆使用情况,可视化类加载行为。
Because closures are objects of type closure, they can also be a property of a class or a member of a collection.
因为闭包是Closure类型的对象,所以它们也可以作为类的属性或集合的成员。
The factory returns an instance of a JspTranslator class that is configured to perform the roles defined by the collection.
工厂返回JspTranslator类的实例,该实例是配置用来执行集合所定义的任务的。
Personalization no longer manages class files, and it does not store resource collection or content spot classes in its repository.
Personalization不再管理类文件,它不在自己的库中存储资源收集类或内容点类。
The application ClassLoader Leaks query will find all stopped application class loaders and interrogate suspects that cause the class loader to be ineligible for garbage collection.
ApplicationClassLoaderLeaks查询将找到所有停止的应用程序类加载器,询问可能导致类加载器不适合垃圾收集的可疑对象。
Every Notes document of the returned Notes document collection is wrapped in its own instance of the order class.
返回的Notes文档集合的每一个Notes文档都被打包在它们自己的订单类的实例中。
Figure 2 illustrates a situation where serialization affects the garbage collection (GC) of classes and a class loader in an unexpected way.
图2演示了一个场景,在这个场景中,序列化以一种意料之外的方式影响了类的垃圾收集(GC)。
Destroy : as you would expect, this method performs any cleanup operations on the class that may need to take place prior to automatic garbage collection.
destroy:正如您想像的那样,这个方法执行任何清理操作,这些操作可能需要在自动垃圾收集之前进行。
When a Jsp needs to be processed, the Jsp container creates an instance of the JspTranslatorFactory class and passes it the name of the desired visitor class collection.
Jsp需要处理时,jsp容器创建一个JspTranslatorFactory类实例并将所希望访问类集合的名字传递给它。
When a Jsp needs to be processed, the Jsp container creates an instance of the JspTranslatorFactory class and passes it the name of the desired visitor class collection.
Jsp需要处理时,jsp容器创建一个JspTranslatorFactory类实例并将所希望访问类集合的名字传递给它。
应用推荐