public void clearAll ( ) { ThreadSafeBitSetSegments segments = this . segments . get ( ) ; for ( int i = 0 ; i < segments . numSegments ( ) ; i ++ ) { AtomicLongArray segment = segments . getSegment ( i ) ; for ( int j = 0 ; j < segment . length ( ) ; j ++ ) { segment . set ( j , 0L ) ; } } }
Clear all bits to 0 .