Method Summary |
|
public Bits | andSet(Bits xs) this set = this set & xs. |
public void | clear() This set = {}. |
public Bits | diffSet(Bits xs) this set = this set \ xs. |
public Bits | dup() Return a copy of this set. |
public void | excl(int x) Exclude x from this set. |
public void | incl(int x) Include x in this set. |
public void | inclRange(int start, int limit) Include [start..limit) in this set. |
public boolean | isMember(int x) |
public static void | main(String[] args) Test Bits.nextBit(int). |
public int | nextBit(int x) Return the index of the least bit position >= x that is set.
If none are set, returns -1. |
public Bits | orSet(Bits xs) this set = this set | xs. |
public String | toString() a string representation of this set. |
public Bits | xorSet(Bits xs) this set = this set ^ xs. |