@Override public Bitmap flip(int rangeStart, int rangeEnd) { // synthesized with 2-upper-bounded NOTs int savedSize = bitmap.sizeInBits(); EWAHCompressedBitmap32 temp = null; try { temp = (EWAHCompressedBitmap32) bitmap.clone(); } catch (CloneNotSupportedException e) { } ; temp.setSizeInBits(rangeEnd, false); temp.not(); if (rangeStart != 0) { temp.setSizeInBits(rangeStart - 1, false); temp.not(); } temp.setSizeInBits(savedSize, false); return new Ewah32BitmapWrapper(temp); }