src/main/java/com/googlecode/javaewah32/IteratorUtil32.java
public static EWAHCompressedBitmap32 materialize(final IteratingRLW32 i) {
        EWAHCompressedBitmap32 ewah = new EWAHCompressedBitmap32();
        materialize(i, ewah);
        return ewah;
    }
public static EWAHCompressedBitmap32 materialize(final IteratingRLW32 i) {
        EWAHCompressedBitmap32 ewah = new EWAHCompressedBitmap32();
        materialize(i, ewah);
        return ewah;
    }
Turn an iterator into a bitmap


This can be used to effectively clone a bitmap in the following
manner:

<code>
EWAHCompressedBitmap32 n = IteratorUtil32.materialize(bitmap.getIteratingRLW()));
n.setSizeInBitsWithinLastWord(bitmap.sizeInBits());
</code>

@param i iterator we wish to materialize
@return materialized version of the iterator