private MappeableContainer toBitmapIfNeeded() {
    int sizeAsRunContainer = MappeableRunContainer.serializedSizeInBytes(this.nbrruns);
    int sizeAsBitmapContainer = MappeableBitmapContainer.serializedSizeInBytes(0);
    if (sizeAsBitmapContainer > sizeAsRunContainer) {
      return this;
    }
    return toBitmapContainer();
  }
private MappeableContainer toBitmapIfNeeded ( ) { int sizeAsRunContainer = MappeableRunContainer . serializedSizeInBytes ( this . nbrruns ) ; int sizeAsBitmapContainer = MappeableBitmapContainer . serializedSizeInBytes ( 0 ) ; if ( sizeAsBitmapContainer > sizeAsRunContainer ) { return this ; } return toBitmapContainer ( ) ; }
convert to bitmap *if needed* (useful if you know it can't be an array)