aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/util/SyncedBitfield.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-08-02 01:12:21 +0200
committerSven Gothel <[email protected]>2015-08-02 01:12:21 +0200
commit047e9adaf2a5f51f7acfa194a744c99b6bfadaea (patch)
treec701ab77a9387cdec1a61c51b9ed289d5aa755e2 /src/java/jogamp/common/util/SyncedBitfield.java
parent805800e9b02acf54a6cc5a04ce94c9b465c42f43 (diff)
Bitfield: Refine API method names, add clearField(boolean), fix put32(..) and bitCount(), add unit test (passed)
Diffstat (limited to 'src/java/jogamp/common/util/SyncedBitfield.java')
-rw-r--r--src/java/jogamp/common/util/SyncedBitfield.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/java/jogamp/common/util/SyncedBitfield.java b/src/java/jogamp/common/util/SyncedBitfield.java
index 783fb91..488be12 100644
--- a/src/java/jogamp/common/util/SyncedBitfield.java
+++ b/src/java/jogamp/common/util/SyncedBitfield.java
@@ -40,8 +40,13 @@ public class SyncedBitfield implements Bitfield {
}
@Override
- public final synchronized int getStorageBitSize() {
- return impl.getStorageBitSize();
+ public final synchronized int size() {
+ return impl.size();
+ }
+
+ @Override
+ public final void clearField(final boolean bit) {
+ impl.clearField(bit);
}
@Override
@@ -85,7 +90,7 @@ public class SyncedBitfield implements Bitfield {
}
@Override
- public final synchronized int getBitCount() {
- return impl.getBitCount();
+ public final synchronized int bitCount() {
+ return impl.bitCount();
}
} \ No newline at end of file