public static BitSet valueOf ( long [ ] longs ) { int n ; for ( n = longs . length ; n > 0 && longs [ n - 1 ] == 0 ; n -- ) ; return new BitSet ( Arrays . copyOf ( longs , n ) ) ; }
Returns a new bit set containing all the bits in the given long array .