<i id='TugQz'><tr id='TugQz'><dt id='TugQz'><q id='TugQz'><span id='TugQz'><b id='TugQz'><form id='TugQz'><ins id='TugQz'></ins><ul id='TugQz'></ul><sub id='TugQz'></sub></form><legend id='TugQz'></legend><bdo id='TugQz'><pre id='TugQz'><center id='TugQz'></center></pre></bdo></b><th id='TugQz'></th></span></q></dt></tr></i><div id='TugQz'><tfoot id='TugQz'></tfoot><dl id='TugQz'><fieldset id='TugQz'></fieldset></dl></div>

    <bdo id='TugQz'></bdo><ul id='TugQz'></ul>

    <small id='TugQz'></small><noframes id='TugQz'>

      1. <legend id='TugQz'><style id='TugQz'><dir id='TugQz'><q id='TugQz'></q></dir></style></legend>

      2. <tfoot id='TugQz'></tfoot>
      3. Java中用于集合操作的API?

        API for set operations in Java?(Java中用于集合操作的API?)

                <tbody id='h9ulE'></tbody>
              <i id='h9ulE'><tr id='h9ulE'><dt id='h9ulE'><q id='h9ulE'><span id='h9ulE'><b id='h9ulE'><form id='h9ulE'><ins id='h9ulE'></ins><ul id='h9ulE'></ul><sub id='h9ulE'></sub></form><legend id='h9ulE'></legend><bdo id='h9ulE'><pre id='h9ulE'><center id='h9ulE'></center></pre></bdo></b><th id='h9ulE'></th></span></q></dt></tr></i><div id='h9ulE'><tfoot id='h9ulE'></tfoot><dl id='h9ulE'><fieldset id='h9ulE'></fieldset></dl></div>

                <tfoot id='h9ulE'></tfoot>

                  <bdo id='h9ulE'></bdo><ul id='h9ulE'></ul>
                • <small id='h9ulE'></small><noframes id='h9ulE'>

                  <legend id='h9ulE'><style id='h9ulE'><dir id='h9ulE'><q id='h9ulE'></q></dir></style></legend>
                  本文介绍了Java中用于集合操作的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否有用于集合操作的 API,例如联合、交集、差异、笛卡尔积、从一个集合到另一个集合的函数、这些函数的域限制和范围限制……在 Java 中?

                  Is there an API for Set operations like Union, intersection, difference, Cartesian product, Function from a set to another, domain restriction and range restriction of those functions, .... in Java?

                  请评论(操作的)覆盖范围和性能.

                  Please comment on coverage (of operations) and performance.

                  谢谢

                  推荐答案

                  是的,java Set 类.

                  Yes, the java Set class.

                  通过 Java SE 教程:

                  Via Java SE tutorial:

                  s1.containsAll(s2) — 如果 s2 是 s1 的子集,则返回 true.(s2 是一个如果集合 s1 包含 s2 中的所有元素,则为 s1 的子集.)

                  s1.containsAll(s2) — returns true if s2 is a subset of s1. (s2 is a subset of s1 if set s1 contains all of the elements in s2.)

                  s1.addAll(s2) — 将 s1 转换为 s1 和 s2 的并集.(这两个集合的并集是包含所有元素的集合在任何一组中.)

                  s1.addAll(s2) — transforms s1 into the union of s1 and s2. (The union of two sets is the set containing all of the elements contained in either set.)

                  s1.retainAll(s2) — 将 s1 转换为 s1 和 s2 的交集.(两个集合的交集是只包含元素的集合两组通用.)

                  s1.retainAll(s2) — transforms s1 into the intersection of s1 and s2. (The intersection of two sets is the set containing only the elements common to both sets.)

                  s1.removeAll(s2) — 将 s1 转换为(非对称)集合s1 和 s2 的差异.(例如,s1减的设定差s2 是包含所有在 s1 中找到但不在s2.)

                  s1.removeAll(s2) — transforms s1 into the (asymmetric) set difference of s1 and s2. (For example, the set difference of s1 minus s2 is the set containing all of the elements found in s1 but not in s2.)

                  http://download.oracle.com/javase/tutorial/集合/接口/set.html

                  这篇关于Java中用于集合操作的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)

                  <small id='jkfCB'></small><noframes id='jkfCB'>

                      <i id='jkfCB'><tr id='jkfCB'><dt id='jkfCB'><q id='jkfCB'><span id='jkfCB'><b id='jkfCB'><form id='jkfCB'><ins id='jkfCB'></ins><ul id='jkfCB'></ul><sub id='jkfCB'></sub></form><legend id='jkfCB'></legend><bdo id='jkfCB'><pre id='jkfCB'><center id='jkfCB'></center></pre></bdo></b><th id='jkfCB'></th></span></q></dt></tr></i><div id='jkfCB'><tfoot id='jkfCB'></tfoot><dl id='jkfCB'><fieldset id='jkfCB'></fieldset></dl></div>
                      <legend id='jkfCB'><style id='jkfCB'><dir id='jkfCB'><q id='jkfCB'></q></dir></style></legend>

                          <tfoot id='jkfCB'></tfoot>
                            <bdo id='jkfCB'></bdo><ul id='jkfCB'></ul>
                              <tbody id='jkfCB'></tbody>