/* * (c) the authors Licensed under the Apache License, Version 2.0. */ package com.fr.third.bitmap.roaringbitmap; /** * Representing a general bitmap interface. */ public interface BitmapDataProvider extends ImmutableBitmapDataProvider { /** * set the value to "true", whether it already appears or not. * * @param x integer value */ public void add(int x); /** * If present remove the specified integers (effectively, sets its bit value to false) * * @param x integer value representing the index in a bitmap */ public void remove(int x); /** * Return the jth value stored in this bitmap. * * @param j index of the value * @return the value */ @Override public int select(int j); /** * Recover allocated but unused memory. */ public void trim(); }