All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----evolution.util.Code
java.util.BitSet
, as of JDK 1.1.5,
is not what we need (and does not work as documented).
E.g. new java.util.BitSet(3).size() == 64
.
Portions of the code of Code
are copied from java.util.BitSet
,
with some modifications.
It has constant size, does not implement logical operations,
but can extract sub-Code
s, concatenate Code
s,
and has a method for setting a specified bit to a given value.
Code
s.
public Code(int nbits)
public void set(int n, boolean b)
public boolean get(int bit)
public void flip(int bit)
public Code subCode(int a, int b)
public int size()
public static Code concatenate(Code c[]) throws BadSizeException
Code
s.
Integer.MAX_VALUE
public long getUnit(int i)
All Packages Class Hierarchy This Package Previous Next Index