软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
Collections.addAll(Collection<? super T> c, T... elements)
将所有指定的元素添加到指定的集合中。
|
static <T> List<T> |
Arrays.asList(T... a)
返回由指定数组支持的一个固定大小的列表。
|
static <E extends Enum<E>> |
EnumSet.of(E first, E... rest)
创建一个枚举集最初包含指定的元素。
|
Modifier and Type | Method and Description |
---|---|
static <T> Stream<T> |
Stream.of(T... values)
返回一个元素为指定值的顺序排列的流。
|
Modifier and Type | Method and Description |
---|---|
protected void |
SwingWorker.publish(V... chunks)
发送数据块的
SwingWorker.process(java.util.List<V>) 方法。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.