diff --git a/core-java-modules/core-java-collections-set-2/README.md b/core-java-modules/core-java-collections-set-2/README.md index 1eed6238249c..698ff5229972 100644 --- a/core-java-modules/core-java-collections-set-2/README.md +++ b/core-java-modules/core-java-collections-set-2/README.md @@ -2,9 +2,11 @@ - [Using Streams to Collect Into a TreeSet](https://www.baeldung.com/java-stream-collect-into-treeset) - [A Guide to LinkedHashSet in Java](https://www.baeldung.com/java-linkedhashset) -- [Sorting a HashSet in Java](https://www.baeldung.com/java-sort-hashset) -- [How to Get First Item From a Java Set](https://www.baeldung.com/first-item-set) - [Cartesian Product of Any Number of Sets in Java](https://www.baeldung.com/java-cartesian-product-sets) - [How to Get Index of an Item in Java Set](https://www.baeldung.com/java-set-element-find-index) - [Check if an Element Is Present in a Set in Java](https://www.baeldung.com/java-set-membership) +- [Set Operations in Java](http://www.baeldung.com/set-operations-in-java) +- [HashSet and TreeSet Comparison](http://www.baeldung.com/java-hashset-vs-treeset) +- [Copying Sets in Java](https://www.baeldung.com/java-copy-sets) +- [Immutable Set in Java](https://www.baeldung.com/java-immutable-set) - More articles: [[<-- prev]](/core-java-modules/core-java-collections-set) diff --git a/core-java-modules/core-java-collections-set-2/pom.xml b/core-java-modules/core-java-collections-set-2/pom.xml index 1e82174d0ae6..0cc9b99e1e01 100644 --- a/core-java-modules/core-java-collections-set-2/pom.xml +++ b/core-java-modules/core-java-collections-set-2/pom.xml @@ -25,6 +25,21 @@ commons-collections4 ${commons-collections4.version} + + com.google.code.gson + gson + ${gson.version} + + + org.apache.commons + commons-lang3 + ${commons-lang3.version} + + + org.apache.commons + commons-collections4 + ${commons-collections4.version} + org.testng @@ -42,5 +57,7 @@ - + + 2.11.0 + \ No newline at end of file diff --git a/core-java-modules/core-java-collections-set/src/main/java/com/baeldung/set/CopySets.java b/core-java-modules/core-java-collections-set-2/src/main/java/com/baeldung/set/CopySets.java similarity index 100% rename from core-java-modules/core-java-collections-set/src/main/java/com/baeldung/set/CopySets.java rename to core-java-modules/core-java-collections-set-2/src/main/java/com/baeldung/set/CopySets.java diff --git a/core-java-modules/core-java-collections-set/src/main/java/com/baeldung/set/UnmodifiableSet.java b/core-java-modules/core-java-collections-set-2/src/main/java/com/baeldung/set/UnmodifiableSet.java similarity index 100% rename from core-java-modules/core-java-collections-set/src/main/java/com/baeldung/set/UnmodifiableSet.java rename to core-java-modules/core-java-collections-set-2/src/main/java/com/baeldung/set/UnmodifiableSet.java diff --git a/core-java-modules/core-java-collections-set/src/test/java/com/baeldung/java/set/SetUnitTest.java b/core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/java/set/SetUnitTest.java similarity index 100% rename from core-java-modules/core-java-collections-set/src/test/java/com/baeldung/java/set/SetUnitTest.java rename to core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/java/set/SetUnitTest.java diff --git a/core-java-modules/core-java-collections-set/src/test/java/com/baeldung/set/SetExamplesUnitTest.java b/core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/set/SetExamplesUnitTest.java similarity index 100% rename from core-java-modules/core-java-collections-set/src/test/java/com/baeldung/set/SetExamplesUnitTest.java rename to core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/set/SetExamplesUnitTest.java diff --git a/core-java-modules/core-java-collections-set/src/test/java/com/baeldung/set/SetOperationsUnitTest.java b/core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/set/SetOperationsUnitTest.java similarity index 100% rename from core-java-modules/core-java-collections-set/src/test/java/com/baeldung/set/SetOperationsUnitTest.java rename to core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/set/SetOperationsUnitTest.java diff --git a/core-java-modules/core-java-collections-set/README.md b/core-java-modules/core-java-collections-set/README.md index bec98538ec5c..1363bae97145 100644 --- a/core-java-modules/core-java-collections-set/README.md +++ b/core-java-modules/core-java-collections-set/README.md @@ -3,13 +3,10 @@ This module contains articles about the Java Set collection ### Relevant Articles: -- [Set Operations in Java](http://www.baeldung.com/set-operations-in-java) -- [HashSet and TreeSet Comparison](http://www.baeldung.com/java-hashset-vs-treeset) - [A Guide to HashSet in Java](http://www.baeldung.com/java-hashset) - [A Guide to TreeSet in Java](http://www.baeldung.com/java-tree-set) - [Initializing HashSet at the Time of Construction](http://www.baeldung.com/java-initialize-hashset) - [Guide to EnumSet](https://www.baeldung.com/java-enumset) -- [Set Operations in Java](https://www.baeldung.com/java-set-operations) -- [Copying Sets in Java](https://www.baeldung.com/java-copy-sets) -- [Immutable Set in Java](https://www.baeldung.com/java-immutable-set) - [Find the Difference Between Two Sets](https://www.baeldung.com/java-difference-between-sets) +- [Sorting a HashSet in Java](https://www.baeldung.com/java-sort-hashset) +- [How to Get First Item From a Java Set](https://www.baeldung.com/first-item-set) diff --git a/core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/firstitemfromset/GetFirstItemFromSetUnitTest.java b/core-java-modules/core-java-collections-set/src/test/java/com/baeldung/firstitemfromset/GetFirstItemFromSetUnitTest.java similarity index 100% rename from core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/firstitemfromset/GetFirstItemFromSetUnitTest.java rename to core-java-modules/core-java-collections-set/src/test/java/com/baeldung/firstitemfromset/GetFirstItemFromSetUnitTest.java diff --git a/core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/hashset/sorting/HashSetUnitTest.java b/core-java-modules/core-java-collections-set/src/test/java/com/baeldung/hashset/sorting/HashSetUnitTest.java similarity index 100% rename from core-java-modules/core-java-collections-set-2/src/test/java/com/baeldung/hashset/sorting/HashSetUnitTest.java rename to core-java-modules/core-java-collections-set/src/test/java/com/baeldung/hashset/sorting/HashSetUnitTest.java