| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private int | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | and(byte[] map, int pos, byte source, int count)
AND count bits from source with map contents starting at pos |
| public static byte[] | |
| public int | |
| public int | |
| public int | |
| public static int | |
| public int | |
| public static int | |
| public BitMap | |
| private void | |
| public int | |
| public byte[] | |
| public int[] | |
| public static boolean | |
| public boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static byte[] | |
| public static byte[] | |
| public static void | or(byte[] map, int pos, byte source, int count)
OR count bits from source with map contents starting at pos |
| public static byte[] | |
| public static void | overlay(byte[] map, int pos, byte source, int count)
overlay count bits from source on map contents starting at pos |
| public void | |
| public int | |
| public void | |
| public static int | |
| public static byte | |
| public static void | |
| public static int | |
| private int | |
| public int | |
| public void | |
| public int | |
| public int | |
| public int | |
| public static int | |
| public static void | |
| public int | |
| public static byte[] |
| canChangeSize | back to summary |
|---|---|
| private boolean canChangeSize | |
| initialSize | back to summary |
|---|---|
| private int initialSize | |
| limitPos | back to summary |
|---|---|
| private int limitPos | |
| map | back to summary |
|---|---|
| private int[] map | |
| BitMap | back to summary |
|---|---|
| public BitMap(int size, boolean extend) | |
| BitMap | back to summary |
|---|---|
| public BitMap(int[] map) | |
| and | back to summary |
|---|---|
| public static void and(byte[] map, int pos, byte source, int count) AND count bits from source with map contents starting at pos | |
| and | back to summary |
|---|---|
| public static byte[] and(byte[] a, byte[] b) | |
| countSetBits | back to summary |
|---|---|
| public int countSetBits(int from, int limit) | |
| countSetBits | back to summary |
|---|---|
| public int countSetBits() | |
| countSetBitsEnd | back to summary |
|---|---|
| public int countSetBitsEnd() Only for word boundary map size | |
| countSetBitsEnd | back to summary |
|---|---|
| public static int countSetBitsEnd(int map) count the run of set bits at the low end | |
| countSetMatches | back to summary |
|---|---|
| public int countSetMatches(BitMap other) Counts the bit positions that are set both in this and the other map. | |
| countUnsetBitsStart | back to summary |
|---|---|
| public static int countUnsetBitsStart(int map) count the run of unset bits at the high end | |
| duplicate | back to summary |
|---|---|
| public BitMap duplicate() | |
| ensureCapacity | back to summary |
|---|---|
| private void ensureCapacity(int newSize) Ensures capacity by enlarging the array if necessary. Sets limitPos if capacity is increased. | |
| get | back to summary |
|---|---|
| public int get(int pos) | |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() | |
| getIntArray | back to summary |
|---|---|
| public int[] getIntArray() | |
| hasAnyBitSet | back to summary |
|---|---|
| public static boolean hasAnyBitSet(byte[] map) | |
| isSet | back to summary |
|---|---|
| public boolean isSet(int pos) | |
| isSet | back to summary |
|---|---|
| public static boolean isSet(int map, int pos) | |
| isSet | back to summary |
|---|---|
| public static boolean isSet(byte map, int pos) | |
| isSet | back to summary |
|---|---|
| public static boolean isSet(byte[] map, int pos) | |
| leftShift | back to summary |
|---|---|
| public static byte[] leftShift(byte[] map, int shiftBits) | |
| not | back to summary |
|---|---|
| public static byte[] not(byte[] a) | |
| or | back to summary |
|---|---|
| public static void or(byte[] map, int pos, byte source, int count) OR count bits from source with map contents starting at pos | |
| or | back to summary |
|---|---|
| public static byte[] or(byte[] a, byte[] b) | |
| overlay | back to summary |
|---|---|
| public static void overlay(byte[] map, int pos, byte source, int count) overlay count bits from source on map contents starting at pos | |
| reset | back to summary |
|---|---|
| public void reset() Resets to bits not set with original size | |
| set | back to summary |
|---|---|
| public int set(int pos) Sets pos and returns old value | |
| set | back to summary |
|---|---|
| public void set(BitMap other) Sets all bits that are set in the other map. | |
| set | back to summary |
|---|---|
| public static int set(int map, int pos) | |
| set | back to summary |
|---|---|
| public static byte set(byte map, int pos) | |
| set | back to summary |
|---|---|
| public static void set(byte[] map, int pos) | |
| setByte | back to summary |
|---|---|
| public static int setByte(int map, byte value, int pos) copy the byte value into the map at given position (0, 24) | |
| setOrUnsetRange | back to summary |
|---|---|
| private int setOrUnsetRange(int pos, int count, boolean set) returns count of bits that change | |
| setRange | back to summary |
|---|---|
| public int setRange(int pos, int count) | |
| setSize | back to summary |
|---|---|
| public void setSize(int newSize) | |
| setValue | back to summary |
|---|---|
| public int setValue(int pos, boolean set) | |
| size | back to summary |
|---|---|
| public int size() | |
| unset | back to summary |
|---|---|
| public int unset(int pos) Unsets pos and returns old value | |
| unset | back to summary |
|---|---|
| public static int unset(int map, int pos) | |
| unset | back to summary |
|---|---|
| public static void unset(byte[] map, int pos) | |
| unsetRange | back to summary |
|---|---|
| public int unsetRange(int pos, int count) | |
| xor | back to summary |
|---|---|
| public static byte[] xor(byte[] a, byte[] b) | |