scala.collection.immutable.HashMap.size()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(10.7k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中scala.collection.immutable.HashMap.size()方法的一些代码示例,展示了HashMap.size()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HashMap.size()方法的具体详情如下:
包路径:scala.collection.immutable.HashMap
类名称:HashMap
方法名:size

HashMap.size介绍

暂无

代码示例

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a Stream that traverses the keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A Stream view of the collection which, by default, executes sequentially.
 */
public static <K> Stream<K> streamKeys(scala.collection.immutable.HashMap<K, ? super Object> coll) {
  return StreamSupport.stream(new StepsAnyImmHashMapKey<K, Object>(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12

/** 
 * Generates a Stream that traverses the values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A Stream view of the collection which, by default, executes sequentially.
 */
public static <V> Stream<V> streamValues(scala.collection.immutable.HashMap<? super Object, V> coll) {
  return StreamSupport.stream(new StepsAnyImmHashMapValue<Object, V>(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat

/** 
 * Generates a Stream that traverses the values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A Stream view of the collection which, by default, executes sequentially.
 */
public static <V> Stream<V> streamValues(scala.collection.immutable.HashMap<? super Object, V> coll) {
  return StreamSupport.stream(new StepsAnyImmHashMapValue<Object, V>(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12

/** 
 * Generates a Stream that traverses the keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A Stream view of the collection which, by default, executes sequentially.
 */
public static <K> Stream<K> streamKeys(scala.collection.immutable.HashMap<K, ? super Object> coll) {
  return StreamSupport.stream(new StepsAnyImmHashMapKey<K, Object>(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a Stream that traverses the values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A Stream view of the collection which, by default, executes sequentially.
 */
public static <V> Stream<V> streamValues(scala.collection.immutable.HashMap<? super Object, V> coll) {
  return StreamSupport.stream(new StepsAnyImmHashMapValue<Object, V>(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat

/** 
 * Generates a DoubleStream that traverses double-valued values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A DoubleStream view of the collection which, by default, executes sequentially.
 */
public static DoubleStream doubleStreamValues(scala.collection.immutable.HashMap<? super Object, Double> coll) {
  return StreamSupport.doubleStream(new StepsDoubleImmHashMapValue(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat

/** 
 * Generates a IntStream that traverses int-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A IntStream view of the collection which, by default, executes sequentially.
 */
public static IntStream intStreamKeys(scala.collection.immutable.HashMap<Integer, ? super Object> coll) {
  return StreamSupport.intStream(new StepsIntImmHashMapKey(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a IntStream that traverses int-valued values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A IntStream view of the collection which, by default, executes sequentially.
 */
public static IntStream intStreamValues(scala.collection.immutable.HashMap<? super Object, Integer> coll) {
  return StreamSupport.intStream(new StepsIntImmHashMapValue(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a LongStream that traverses long-valued values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A LongStream view of the collection which, by default, executes sequentially.
 */
public static LongStream longStreamValues(scala.collection.immutable.HashMap<? super Object, Long> coll) {
  return StreamSupport.longStream(new StepsLongImmHashMapValue(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12

/** 
 * Generates a IntStream that traverses int-valued values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A IntStream view of the collection which, by default, executes sequentially.
 */
public static IntStream intStreamValues(scala.collection.immutable.HashMap<? super Object, Integer> coll) {
  return StreamSupport.intStream(new StepsIntImmHashMapValue(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat

/** 
 * Generates a DoubleStream that traverses double-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A DoubleStream view of the collection which, by default, executes sequentially.
 */
public static DoubleStream doubleStreamKeys(scala.collection.immutable.HashMap<Double, ? super Object> coll) {
  return StreamSupport.doubleStream(new StepsDoubleImmHashMapKey(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat

/** 
 * Generates a LongStream that traverses long-valued values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A LongStream view of the collection which, by default, executes sequentially.
 */
public static LongStream longStreamValues(scala.collection.immutable.HashMap<? super Object, Long> coll) {
  return StreamSupport.longStream(new StepsLongImmHashMapValue(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a DoubleStream that traverses double-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A DoubleStream view of the collection which, by default, executes sequentially.
 */
public static DoubleStream doubleStreamKeys(scala.collection.immutable.HashMap<Double, ? super Object> coll) {
  return StreamSupport.doubleStream(new StepsDoubleImmHashMapKey(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a LongStream that traverses long-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A LongStream view of the collection which, by default, executes sequentially.
 */
public static LongStream longStreamKeys(scala.collection.immutable.HashMap<Long, ? super Object> coll) {
  return StreamSupport.longStream(new StepsLongImmHashMapKey(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12

/** 
 * Generates a DoubleStream that traverses double-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A DoubleStream view of the collection which, by default, executes sequentially.
 */
public static DoubleStream doubleStreamKeys(scala.collection.immutable.HashMap<Double, ? super Object> coll) {
  return StreamSupport.doubleStream(new StepsDoubleImmHashMapKey(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12

/** 
 * Generates a DoubleStream that traverses double-valued values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A DoubleStream view of the collection which, by default, executes sequentially.
 */
public static DoubleStream doubleStreamValues(scala.collection.immutable.HashMap<? super Object, Double> coll) {
  return StreamSupport.doubleStream(new StepsDoubleImmHashMapValue(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12

/** 
 * Generates a IntStream that traverses int-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A IntStream view of the collection which, by default, executes sequentially.
 */
public static IntStream intStreamKeys(scala.collection.immutable.HashMap<Integer, ? super Object> coll) {
  return StreamSupport.intStream(new StepsIntImmHashMapKey(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.12

/** 
 * Generates a LongStream that traverses long-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A LongStream view of the collection which, by default, executes sequentially.
 */
public static LongStream longStreamKeys(scala.collection.immutable.HashMap<Long, ? super Object> coll) {
  return StreamSupport.longStream(new StepsLongImmHashMapKey(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a DoubleStream that traverses double-valued values of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A DoubleStream view of the collection which, by default, executes sequentially.
 */
public static DoubleStream doubleStreamValues(scala.collection.immutable.HashMap<? super Object, Double> coll) {
  return StreamSupport.doubleStream(new StepsDoubleImmHashMapValue(coll, 0, coll.size()), false);
}

代码示例来源:origin: org.scala-lang.modules/scala-java8-compat_2.11

/** 
 * Generates a IntStream that traverses int-valued keys of a scala.collection.immutable.HashMap.
 * <p>
 * Both sequential and parallel operations will be efficient.
 *
 * @param coll The immutable.HashMap to traverse
 * @return     A IntStream view of the collection which, by default, executes sequentially.
 */
public static IntStream intStreamKeys(scala.collection.immutable.HashMap<Integer, ? super Object> coll) {
  return StreamSupport.intStream(new StepsIntImmHashMapKey(coll, 0, coll.size()), false);
}

相关文章

微信公众号

最新文章

更多