当前位置: 首页>>代码示例>>Java>>正文


Java NonBlockingHashMapLong.IteratorLong方法代码示例

本文整理汇总了Java中water.nbhm.NonBlockingHashMapLong.IteratorLong方法的典型用法代码示例。如果您正苦于以下问题:Java NonBlockingHashMapLong.IteratorLong方法的具体用法?Java NonBlockingHashMapLong.IteratorLong怎么用?Java NonBlockingHashMapLong.IteratorLong使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在water.nbhm.NonBlockingHashMapLong的用法示例。


在下文中一共展示了NonBlockingHashMapLong.IteratorLong方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: toString

import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
@Override public String toString() {
  StringBuilder sb = new StringBuilder();
  for( NonBlockingHashMapLong.IteratorLong i = iter(_col0s); i.hasNext(); ) {
    long l = i.nextLong();
    double d = Double.longBitsToDouble(l);
    sb.append(d).append(": {");
    NonBlockingHashMapLong<AtomicLong> col1s = _col0s.get(l);
    for( NonBlockingHashMapLong.IteratorLong j = iter(col1s); j.hasNext(); ) {
      long l2 = j.nextLong();
      double d2 = Double.longBitsToDouble(l2);
      AtomicLong al = col1s.get(l2);
      sb.append(d2).append(": ").append(al.get()).append(", ");
    }
    sb.append("}\n");
  }
  return sb.toString();
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:18,代码来源:ASTTable.java

示例2: toString

import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  for (NonBlockingHashMapLong.IteratorLong i = iter(_col0s); i.hasNext(); ) {
    long l = i.nextLong();
    double d = Double.longBitsToDouble(l);
    sb.append(d).append(": {");
    NonBlockingHashMapLong<AtomicLong> col1s = _col0s.get(l);
    for (NonBlockingHashMapLong.IteratorLong j = iter(col1s); j.hasNext(); ) {
      long l2 = j.nextLong();
      double d2 = Double.longBitsToDouble(l2);
      AtomicLong al = col1s.get(l2);
      sb.append(d2).append(": ").append(al.get()).append(", ");
    }
    sb.append("}\n");
  }
  return sb.toString();
}
 
开发者ID:h2oai,项目名称:h2o-3,代码行数:19,代码来源:AstTable.java

示例3: collectDomain

import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
private static double[] collectDomain( NonBlockingHashMapLong ls ) {
  int sz = ls.size();         // Uniques
  double ds[] = new double[sz];
  int x=0;
  for( NonBlockingHashMapLong.IteratorLong i = iter(ls); i.hasNext(); )
    ds[x++] = Double.longBitsToDouble(i.nextLong());
  Arrays.sort(ds);
  return ds;
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:10,代码来源:ASTTable.java

示例4: collectDomain

import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
private static double[] collectDomain(NonBlockingHashMapLong ls) {
  int sz = ls.size();         // Uniques
  double ds[] = new double[sz];
  int x = 0;
  for (NonBlockingHashMapLong.IteratorLong i = iter(ls); i.hasNext(); )
    ds[x++] = Double.longBitsToDouble(i.nextLong());
  Arrays.sort(ds);
  return ds;
}
 
开发者ID:h2oai,项目名称:h2o-3,代码行数:10,代码来源:AstTable.java

示例5: iter

import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
private static NonBlockingHashMapLong.IteratorLong iter(NonBlockingHashMapLong nbhml) { 
  return (NonBlockingHashMapLong.IteratorLong)nbhml.keySet().iterator();  
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:4,代码来源:ASTTable.java

示例6: iter

import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
private static NonBlockingHashMapLong.IteratorLong iter(NonBlockingHashMapLong nbhml) {
  return (NonBlockingHashMapLong.IteratorLong) nbhml.keySet().iterator();
}
 
开发者ID:h2oai,项目名称:h2o-3,代码行数:4,代码来源:AstTable.java


注:本文中的water.nbhm.NonBlockingHashMapLong.IteratorLong方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。