看看文档,可以知道的。呵呵{:soso_e130:}
public class Collections extends Object
This class consists exclusively of static methods that operate on or return collections. It contains polymorphic algorithms that operate on collections, "wrappers", which return a new collection backed by a specified collection, and a few other odds and ends.
这个类由专门的静态方法,处理或返回集合。它包含了多态算法操作集合,“包装”,它返回一个新的集合由指定的收集,和其他一些东西。
(Collections 操作集合类的工具类)
public interface Collection<E> extends Iterable<E>
The root interface in the collection hierarchy. A collection represents a group of objects, known as its elements. Some collections allow duplicate elements and others do not. Some are ordered and others unordered. The JDK does not provide any direct implementations of this interface: it provides implementations of more specific subinterfaces like Set and List. This interface is typically used to pass collections around and manipulate them where maximum generality is desired.
根接口集合中的层次结构。一个集合代表一组对象,称为它的元素。一些集合允许重复的元素,而其他人则没有。有些是命令和其他无序。JDK并不提供任何直接的实现这个接口:它提供了实现更多的具体设置和列表,个子像这个接口通常是用来传递集合和操纵它们周围,最大共性,是理想的。
(Collection是集合类的接口)
|