public static IntSet concurrentCopyFrom ( IntSet intSet , int maxExclusive ) { ConcurrentSmallIntSet cis = new ConcurrentSmallIntSet ( maxExclusive ) ; intSet . forEach ( ( IntConsumer ) cis :: set ) ; return cis ; }
Returns a copy of the given set that supports concurrent operations . The returned set will contain all of the ints the provided set contained . The returned set only supports up to the maximum size the previous int set supported when this method is invoked or the largest int it held .