JAVA-8354: Split or move core-java-collections-3

This commit is contained in:
sampadawagde 2021-12-05 11:58:14 +05:30
parent 0d45985435
commit f97df9e828
6 changed files with 19 additions and 14 deletions

View File

@ -11,7 +11,7 @@
- [Performance of contains() in a HashSet vs ArrayList](https://www.baeldung.com/java-hashset-arraylist-contains-performance)
- [Fail-Safe Iterator vs Fail-Fast Iterator](https://www.baeldung.com/java-fail-safe-vs-fail-fast-iterator)
- [Quick Guide to the Java Stack](https://www.baeldung.com/java-stack)
- [Convert an Array of Primitives to a List](https://www.baeldung.com/java-primitive-array-to-list)
- [A Guide to BitSet in Java](https://www.baeldung.com/java-bitset)
- [Get the First Key and Value From a HashMap](https://www.baeldung.com/java-hashmap-get-first-entry)
- [Performance of removeAll() in a HashSet](https://www.baeldung.com/java-hashset-removeall-performance)
- More articles: [[<-- prev]](/core-java-modules/core-java-collections-2) [[next -->]](/core-java-modules/core-java-collections-4)

View File

@ -1,4 +1,4 @@
package com.baeldung.stack;
package com.baeldung.collections.stack;
import org.junit.Test;

View File

@ -12,4 +12,5 @@ This module contains articles about Java collections
- [Defining a Char Stack in Java](https://www.baeldung.com/java-char-stack)
- [Guide to the Java Queue Interface](https://www.baeldung.com/java-queue)
- [An Introduction to Synchronized Java Collections](https://www.baeldung.com/java-synchronized-collections)
- [[More -->]](/core-java-modules/core-java-collections-2)
- [Convert an Array of Primitives to a List](https://www.baeldung.com/java-primitive-array-to-list)
- More articles: [[next -->]](/core-java-modules/core-java-collections-2)

View File

@ -25,6 +25,11 @@
<artifactId>jmh-generator-annprocess</artifactId>
<version>${jmh-generator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -1,13 +1,15 @@
package com.baeldung.collections.iterators;
package com.baeldung.collections.convertarrayprimitives;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import com.google.common.primitives.Ints;
import org.apache.commons.lang3.ArrayUtils;
import com.google.common.primitives.Ints;
public class ConvertPrimitivesArrayToList {
public static void failConvert() {

View File

@ -1,14 +1,11 @@
package com.baeldung.collections.iterators;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.Collectors;
import com.google.common.primitives.Ints;
import org.junit.Test;
package com.baeldung.collections.convertarrayprimitives;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import org.junit.Test;
public class ConvertPrimitivesArrayToListUnitTest {
@Test