本文整理汇总了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();
}
示例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();
}
示例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;
}
示例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;
}
示例5: iter
import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
private static NonBlockingHashMapLong.IteratorLong iter(NonBlockingHashMapLong nbhml) {
return (NonBlockingHashMapLong.IteratorLong)nbhml.keySet().iterator();
}
示例6: iter
import water.nbhm.NonBlockingHashMapLong; //导入方法依赖的package包/类
private static NonBlockingHashMapLong.IteratorLong iter(NonBlockingHashMapLong nbhml) {
return (NonBlockingHashMapLong.IteratorLong) nbhml.keySet().iterator();
}