From 047e9adaf2a5f51f7acfa194a744c99b6bfadaea Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 2 Aug 2015 01:12:21 +0200 Subject: Bitfield: Refine API method names, add clearField(boolean), fix put32(..) and bitCount(), add unit test (passed) --- src/java/jogamp/common/util/SyncedBitfield.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/java/jogamp/common/util/SyncedBitfield.java') 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 -- cgit v1.2.3