-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ThreadUtils, Base91 and LargeBitmap.
- Loading branch information
Showing
22 changed files
with
1,464 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=1.13.0 | ||
version=1.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tw-base-utils/src/main/java/com/transferwise/common/baseutils/bitmap/LargeBitmap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.transferwise.common.baseutils.bitmap; | ||
|
||
public interface LargeBitmap { | ||
|
||
boolean isEmpty(); | ||
|
||
void set(long bit); | ||
|
||
void set(long startBit, long endBit); | ||
|
||
boolean checkedSet(long bit); | ||
|
||
void clear(long startBit, long endBit); | ||
|
||
void clear(long bit); | ||
|
||
void clear(); | ||
|
||
boolean checkedClear(long bit); | ||
|
||
boolean isSet(long bit); | ||
|
||
long getFirstClearBit(long offset); | ||
|
||
long getFirstSetBit(long offset); | ||
|
||
long getFirstSetBit(); | ||
|
||
LargeBitmap copy(); | ||
} |
Oops, something went wrong.