3333 * Uses 6 bits per slot in a packed byte array.
3434 * @author Lee Rhodes
3535 */
36- class Hll6Array extends HllArray {
36+ final class Hll6Array extends HllArray {
3737
3838 /**
3939 * Standard constructor for new instance
@@ -52,7 +52,7 @@ class Hll6Array extends HllArray {
5252 super (that );
5353 }
5454
55- static final Hll6Array heapify (final MemorySegment seg ) {
55+ static Hll6Array heapify (final MemorySegment seg ) {
5656 final int lgConfigK = extractLgK (seg );
5757 final Hll6Array hll6Array = new Hll6Array (lgConfigK );
5858 HllArray .extractCommonHll (seg , hll6Array );
@@ -78,8 +78,7 @@ int getNibble(final int slotNo) {
7878 throw new SketchesStateException ("Improper access." );
7979 }
8080
81- @ Override
82- final int getSlotValue (final int slotNo ) {
81+ @ Override int getSlotValue (final int slotNo ) {
8382 return get6Bit (hllByteArr , 0 , slotNo );
8483 }
8584
@@ -95,14 +94,14 @@ void putNibble(final int slotNo, final int nibValue) {
9594
9695 @ Override
9796 //Would be used by Union, but not used because the gadget is always HLL8 type
98- final void updateSlotNoKxQ (final int slotNo , final int newValue ) {
97+ void updateSlotNoKxQ (final int slotNo , final int newValue ) {
9998 throw new SketchesStateException ("Improper access." );
10099 }
101100
102101 @ Override
103102 //Used by this couponUpdate()
104103 //updates HipAccum, CurMin, NumAtCurMin, KxQs and checks newValue > oldValue
105- final void updateSlotWithKxQ (final int slotNo , final int newValue ) {
104+ void updateSlotWithKxQ (final int slotNo , final int newValue ) {
106105 final int oldValue = getSlotValue (slotNo );
107106 if (newValue > oldValue ) {
108107 put6Bit (hllByteArr , 0 , slotNo , newValue );
@@ -115,7 +114,7 @@ final void updateSlotWithKxQ(final int slotNo, final int newValue) {
115114 }
116115
117116 //on-heap
118- private static final void put6Bit (final byte [] arr , final int offsetBytes , final int slotNo ,
117+ private static void put6Bit (final byte [] arr , final int offsetBytes , final int slotNo ,
119118 final int newValue ) {
120119 final int startBit = slotNo * 6 ;
121120 final int shift = startBit & 0X7 ;
@@ -127,7 +126,7 @@ private static final void put6Bit(final byte[] arr, final int offsetBytes, final
127126 }
128127
129128 //on-heap
130- private static final int get6Bit (final byte [] arr , final int offsetBytes , final int slotNo ) {
129+ private static int get6Bit (final byte [] arr , final int offsetBytes , final int slotNo ) {
131130 final int startBit = slotNo * 6 ;
132131 final int shift = startBit & 0X7 ;
133132 final int byteIdx = (startBit >>> 3 ) + offsetBytes ;
0 commit comments