本文整理了Java中scala.collection.immutable.HashSet.size()
方法的一些代码示例,展示了HashSet.size()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HashSet.size()
方法的具体详情如下:
包路径:scala.collection.immutable.HashSet
类名称:HashSet
方法名:size
暂无
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11
/**
* Generates a Stream that traverses a scala.collection.immutable.HashSet.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A Stream view of the collection which, by default, executes sequentially.
*/
public static <T> Stream<T> stream(scala.collection.immutable.HashSet<T> coll) {
return StreamSupport.stream(new StepsAnyImmHashSet<T>(coll.iterator(), coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12
/**
* Generates a Stream that traverses a scala.collection.immutable.HashSet.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A Stream view of the collection which, by default, executes sequentially.
*/
public static <T> Stream<T> stream(scala.collection.immutable.HashSet<T> coll) {
return StreamSupport.stream(new StepsAnyImmHashSet<T>(coll.iterator(), coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat
/**
* Generates a Stream that traverses a scala.collection.immutable.HashSet.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A Stream view of the collection which, by default, executes sequentially.
*/
public static <T> Stream<T> stream(scala.collection.immutable.HashSet<T> coll) {
return StreamSupport.stream(new StepsAnyImmHashSet<T>(coll.iterator(), coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat
/**
* Generates a IntStream that traverses a scala.collection.immutable.HashSet of Ints.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A IntStream view of the collection which, by default, executes sequentially.
*/
public static IntStream intStream(scala.collection.immutable.HashSet<Integer> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.intStream(new StepsIntImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11
/**
* Generates a DoubleStream that traverses a scala.collection.immutable.HashSet of Doubles.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A DoubleStream view of the collection which, by default, executes sequentially.
*/
public static DoubleStream doubleStream(scala.collection.immutable.HashSet<Double> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.doubleStream(new StepsDoubleImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12
/**
* Generates a DoubleStream that traverses a scala.collection.immutable.HashSet of Doubles.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A DoubleStream view of the collection which, by default, executes sequentially.
*/
public static DoubleStream doubleStream(scala.collection.immutable.HashSet<Double> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.doubleStream(new StepsDoubleImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11
/**
* Generates a IntStream that traverses a scala.collection.immutable.HashSet of Ints.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A IntStream view of the collection which, by default, executes sequentially.
*/
public static IntStream intStream(scala.collection.immutable.HashSet<Integer> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.intStream(new StepsIntImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12
/**
* Generates a IntStream that traverses a scala.collection.immutable.HashSet of Ints.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A IntStream view of the collection which, by default, executes sequentially.
*/
public static IntStream intStream(scala.collection.immutable.HashSet<Integer> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.intStream(new StepsIntImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat
/**
* Generates a DoubleStream that traverses a scala.collection.immutable.HashSet of Doubles.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A DoubleStream view of the collection which, by default, executes sequentially.
*/
public static DoubleStream doubleStream(scala.collection.immutable.HashSet<Double> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.doubleStream(new StepsDoubleImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11
/**
* Generates a LongStream that traverses a scala.collection.immutable.HashSet of Longs.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A LongStream view of the collection which, by default, executes sequentially.
*/
public static LongStream longStream(scala.collection.immutable.HashSet<Long> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.longStream(new StepsLongImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12
/**
* Generates a LongStream that traverses a scala.collection.immutable.HashSet of Longs.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A LongStream view of the collection which, by default, executes sequentially.
*/
public static LongStream longStream(scala.collection.immutable.HashSet<Long> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.longStream(new StepsLongImmHashSet(iter, coll.size()), false);
}
代码示例来源:origin: org.scala-lang.modules/scala-java8-compat
/**
* Generates a LongStream that traverses a scala.collection.immutable.HashSet of Longs.
* <p>
* Both sequential and parallel operations will be efficient.
*
* @param coll The immutable.HashSet to traverse
* @return A LongStream view of the collection which, by default, executes sequentially.
*/
public static LongStream longStream(scala.collection.immutable.HashSet<Long> coll) {
scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator();
return StreamSupport.longStream(new StepsLongImmHashSet(iter, coll.size()), false);
}
内容来源于网络,如有侵权,请联系作者删除!