aa
BitSetSparse.java
Go to the documentation of this file.
1 package com.cliffc.aa.util;
2 
3 // Simple sparse bitset, with a test-and-set.
4 public class BitSetSparse {
6  public boolean tset(int b0, int b1) { return tset(((long)b0<<32)|b1); }
7  public boolean tset(long b) { return _set.put(b,"")!=null; }
8  public void clear() { _set.clear(); }
9 }
com.cliffc.aa.util.BitSetSparse.tset
boolean tset(int b0, int b1)
Definition: BitSetSparse.java:6
com.cliffc.aa.util.BitSetSparse.tset
boolean tset(long b)
Definition: BitSetSparse.java:7
com.cliffc.aa.util.NonBlockingHashMapLong.clear
void clear()
Removes all of the mappings from this map.
Definition: NonBlockingHashMapLong.java:332
com.cliffc.aa.util.BitSetSparse
Definition: BitSetSparse.java:4
com.cliffc.aa.util.BitSetSparse._set
NonBlockingHashMapLong< String > _set
Definition: BitSetSparse.java:5
com.cliffc.aa.util.BitSetSparse.clear
void clear()
Definition: BitSetSparse.java:8
com.cliffc.aa.util.NonBlockingHashMapLong< String >
com.cliffc.aa.util.NonBlockingHashMapLong.put
TypeV put(long key, TypeV val)
Maps the specified key to the specified value in the table.
Definition: NonBlockingHashMapLong.java:278