Skip to content

Commit 71793ce

Browse files
committed
[BAEL-9550] - Moved articles and codes from core-java-collections module to java-collections-convversions and java-collections-maps module
1 parent 5597bf6 commit 71793ce

File tree

34 files changed

+152
-35
lines changed

34 files changed

+152
-35
lines changed

core-java-collections/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,23 @@
44

55
### Relevant Articles:
66
- [Immutable ArrayList in Java](http://www.baeldung.com/java-immutable-list)
7-
- [Converting between an Array and a List in Java](http://www.baeldung.com/convert-array-to-list-and-list-to-array)
8-
- [Converting between an Array and a Set in Java](http://www.baeldung.com/convert-array-to-set-and-set-to-array)
9-
- [Converting between a List and a Set in Java](http://www.baeldung.com/convert-list-to-set-and-set-to-list)
10-
- [Convert a Map to an Array, List or Set in Java](http://www.baeldung.com/convert-map-values-to-array-list-set)
117
- [Guide to the Java ArrayList](http://www.baeldung.com/java-arraylist)
128
- [Random List Element](http://www.baeldung.com/java-random-list-element)
139
- [Java - Combine Multiple Collections](http://www.baeldung.com/java-combine-multiple-collections)
14-
- [Guide to WeakHashMap in Java](http://www.baeldung.com/java-weakhashmap)
15-
- [Guide to the Guava BiMap](http://www.baeldung.com/guava-bimap)
16-
- [The Java HashMap Under the Hood](http://www.baeldung.com/java-hashmap)
17-
- [A Guide to LinkedHashMap in Java](http://www.baeldung.com/java-linked-hashmap)
18-
- [A Guide to TreeMap in Java](http://www.baeldung.com/java-treemap)
1910
- [Removing all nulls from a List in Java](http://www.baeldung.com/java-remove-nulls-from-list)
2011
- [Removing all duplicates from a List in Java](http://www.baeldung.com/java-remove-duplicates-from-list)
2112
- [Flattening Nested Collections in Java](http://www.baeldung.com/java-flatten-nested-collections)
2213
- [HashSet and TreeSet Comparison](http://www.baeldung.com/java-hashset-vs-treeset)
23-
- [Iterate over a Map in Java](http://www.baeldung.com/java-iterate-map)
2414
- [Collect a Java Stream to an Immutable Collection](http://www.baeldung.com/java-stream-immutable-collection)
25-
- [Converting a List to String in Java](http://www.baeldung.com/java-list-to-string)
2615
- [Introduction to the Java ArrayDeque](http://www.baeldung.com/java-array-deque)
2716
- [A Guide to HashSet in Java](http://www.baeldung.com/java-hashset)
2817
- [A Guide to TreeSet in Java](http://www.baeldung.com/java-tree-set)
29-
- [Java TreeMap vs HashMap](http://www.baeldung.com/java-treemap-vs-hashmap)
3018
- [How to TDD a List Implementation in Java](http://www.baeldung.com/java-test-driven-list)
31-
- [How to Store Duplicate Keys in a Map in Java?](http://www.baeldung.com/java-map-duplicate-keys)
3219
- [Getting the Size of an Iterable in Java](http://www.baeldung.com/java-iterable-size)
3320
- [Iterating Backward Through a List](http://www.baeldung.com/java-list-iterate-backwards)
3421
- [How to Filter a Collection in Java](http://www.baeldung.com/java-collection-filtering)
3522
- [Add Multiple Items to an Java ArrayList](http://www.baeldung.com/java-add-items-array-list)
3623
- [Remove the First Element from a List](http://www.baeldung.com/java-remove-first-element-from-list)
37-
- [How to Convert List to Map in Java](http://www.baeldung.com/java-list-to-map)
3824
- [Initializing HashSet at the Time of Construction](http://www.baeldung.com/java-initialize-hashset)
3925
- [Removing the First Element of an Array](https://www.baeldung.com/java-array-remove-first-element)
4026
- [Fail-Safe Iterator vs Fail-Fast Iterator](http://www.baeldung.com/java-fail-safe-vs-fail-fast-iterator)
@@ -47,12 +33,8 @@
4733
- [Remove All Occurrences of a Specific Value from a List](https://www.baeldung.com/java-remove-value-from-list)
4834
- [Thread Safe LIFO Data Structure Implementations](https://www.baeldung.com/java-lifo-thread-safe)
4935
- [Collections.emptyList() vs. New List Instance](https://www.baeldung.com/java-collections-emptylist-new-list)
50-
- [Initialize a HashMap in Java](https://www.baeldung.com/java-initialize-hashmap)
5136
- [Differences Between Collection.clear() and Collection.removeAll()](https://www.baeldung.com/java-collection-clear-vs-removeall)
5237
- [Performance of contains() in a HashSet vs ArrayList](https://www.baeldung.com/java-hashset-arraylist-contains-performance)
53-
- [Get the Key for a Value from a Java Map](https://www.baeldung.com/java-map-key-from-value)
5438
- [Time Complexity of Java Collections](https://www.baeldung.com/java-collections-complexity)
55-
- [Sort a HashMap in Java](https://www.baeldung.com/java-hashmap-sort)
56-
- [Finding the Highest Value in a Java Map](https://www.baeldung.com/java-find-map-max)
5739
- [Operating on and Removing an Item from Stream](https://www.baeldung.com/java-use-remove-item-stream)
5840
- [An Introduction to Synchronized Java Collections](https://www.baeldung.com/java-synchronized-collections)

core-java-collections/pom.xml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,11 @@
1414
</parent>
1515

1616
<dependencies>
17-
<dependency>
18-
<groupId>net.sourceforge.collections</groupId>
19-
<artifactId>collections-generic</artifactId>
20-
<version>${collections-generic.version}</version>
21-
</dependency>
2217
<dependency>
2318
<groupId>org.apache.commons</groupId>
2419
<artifactId>commons-collections4</artifactId>
2520
<version>${commons-collections4.version}</version>
2621
</dependency>
27-
<dependency>
28-
<groupId>com.jayway.awaitility</groupId>
29-
<artifactId>awaitility</artifactId>
30-
<version>${avaitility.version}</version>
31-
<scope>test</scope>
32-
</dependency>
3322
<dependency>
3423
<groupId>org.apache.commons</groupId>
3524
<artifactId>commons-lang3</artifactId>
@@ -67,12 +56,6 @@
6756
<artifactId>commons-exec</artifactId>
6857
<version>1.3</version>
6958
</dependency>
70-
71-
<dependency>
72-
<groupId>one.util</groupId>
73-
<artifactId>streamex</artifactId>
74-
<version>0.6.5</version>
75-
</dependency>
7659
</dependencies>
7760

7861
<properties>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
=========
2+
3+
## Java Collections Cookbooks and Examples
4+
5+
### Relevant Articles:
6+
- [Converting between an Array and a List in Java](http://www.baeldung.com/convert-array-to-list-and-list-to-array)
7+
- [Converting between an Array and a Set in Java](http://www.baeldung.com/convert-array-to-set-and-set-to-array)
8+
- [Converting between a List and a Set in Java](http://www.baeldung.com/convert-list-to-set-and-set-to-list)
9+
- [Convert a Map to an Array, List or Set in Java](http://www.baeldung.com/convert-map-values-to-array-list-set)
10+
- [Converting a List to String in Java](http://www.baeldung.com/java-list-to-string)
11+
- [How to Convert List to Map in Java](http://www.baeldung.com/java-list-to-map)

java-collections-conversions/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<artifactId>java-collections-conversions</artifactId>
5+
<version>0.1.0-SNAPSHOT</version>
6+
<packaging>jar</packaging>
7+
<name>java-collections-conversions</name>
8+
9+
<parent>
10+
<groupId>com.baeldung</groupId>
11+
<artifactId>parent-java</artifactId>
12+
<version>0.0.1-SNAPSHOT</version>
13+
<relativePath>../parent-java</relativePath>
14+
</parent>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.apache.commons</groupId>
19+
<artifactId>commons-collections4</artifactId>
20+
<version>${commons-collections4.version}</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.apache.commons</groupId>
24+
<artifactId>commons-lang3</artifactId>
25+
<version>${commons-lang3.version}</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.assertj</groupId>
29+
<artifactId>assertj-core</artifactId>
30+
<version>${assertj.version}</version>
31+
<scope>test</scope>
32+
</dependency>
33+
</dependencies>
34+
35+
<properties>
36+
<commons-lang3.version>3.5</commons-lang3.version>
37+
<commons-collections4.version>4.1</commons-collections4.version>
38+
<assertj.version>3.6.1</assertj.version>
39+
</properties>
40+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
6+
</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<root level="INFO">
11+
<appender-ref ref="STDOUT" />
12+
</root>
13+
</configuration>

0 commit comments

Comments
 (0)