Skip to content

Commit 6d79649

Browse files
committed
[BAEL-9547] - Splitted guava module and introduced guava-collections module
1 parent 285219c commit 6d79649

32 files changed

+141
-21
lines changed

guava-collections/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.class
2+
3+
#folders#
4+
/target
5+
/neoDb*
6+
/data
7+
/src/main/webapp/WEB-INF/classes
8+
*/META-INF/*
9+
10+
# Packaged files #
11+
*.jar
12+
*.war
13+
*.ear

guava-collections/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
=========
2+
3+
## Guava and Hamcrest Cookbooks and Examples
4+
5+
6+
### Relevant Articles:
7+
- [Guava Collections Cookbook](http://www.baeldung.com/guava-collections)
8+
- [Guava Ordering Cookbook](http://www.baeldung.com/guava-order)
9+
- [Hamcrest Collections Cookbook](http://www.baeldung.com/hamcrest-collections-arrays)
10+
- [Partition a List in Java](http://www.baeldung.com/java-list-split)
11+
- [Filtering and Transforming Collections in Guava](http://www.baeldung.com/guava-filter-and-transform-a-collection)
12+
- [Guava – Join and Split Collections](http://www.baeldung.com/guava-joiner-and-splitter-tutorial)
13+
- [Guava – Lists](http://www.baeldung.com/guava-lists)
14+
- [Guava – Sets](http://www.baeldung.com/guava-sets)
15+
- [Guava – Maps](http://www.baeldung.com/guava-maps)
16+
- [Guide to Guava Multimap](http://www.baeldung.com/guava-multimap)
17+
- [Guide to Guava RangeSet](http://www.baeldung.com/guava-rangeset)
18+
- [Guide to Guava RangeMap](http://www.baeldung.com/guava-rangemap)
19+
- [Guide to Guava MinMaxPriorityQueue and EvictingQueue](http://www.baeldung.com/guava-minmax-priority-queue-and-evicting-queue)
20+
- [Initialize a HashMap in Java](https://www.baeldung.com/java-initialize-hashmap)

guava-collections/pom.xml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
<groupId>com.baeldung</groupId>
5+
<artifactId>guava-collections</artifactId>
6+
<version>0.1.0-SNAPSHOT</version>
7+
<name>guava-collections</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+
<!-- utils -->
18+
<dependency>
19+
<groupId>org.apache.commons</groupId>
20+
<artifactId>commons-collections4</artifactId>
21+
<version>${commons-collections4.version}</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>org.apache.commons</groupId>
25+
<artifactId>commons-lang3</artifactId>
26+
<version>${commons-lang3.version}</version>
27+
</dependency>
28+
<!-- test scoped -->
29+
<dependency>
30+
<groupId>org.assertj</groupId>
31+
<artifactId>assertj-core</artifactId>
32+
<version>${assertj.version}</version>
33+
<scope>test</scope>
34+
</dependency>
35+
36+
<!-- https://mvnrepository.com/artifact/org.hamcrest/java-hamcrest -->
37+
<dependency>
38+
<groupId>org.hamcrest</groupId>
39+
<artifactId>java-hamcrest</artifactId>
40+
<version>${java-hamcrest.version}</version>
41+
<scope>test</scope>
42+
</dependency>
43+
</dependencies>
44+
45+
<build>
46+
<finalName>guava</finalName>
47+
<resources>
48+
<resource>
49+
<directory>src/main/resources</directory>
50+
<filtering>true</filtering>
51+
</resource>
52+
</resources>
53+
</build>
54+
55+
<properties>
56+
<!-- util -->
57+
<guava.version>24.0-jre</guava.version>
58+
<commons-lang3.version>3.5</commons-lang3.version>
59+
<commons-collections4.version>4.1</commons-collections4.version>
60+
61+
<!-- testing -->
62+
<assertj.version>3.6.1</assertj.version>
63+
<java-hamcrest.version>2.0.0.0</java-hamcrest.version>
64+
</properties>
65+
66+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
<logger name="org.springframework" level="WARN" />
11+
<logger name="org.springframework.transaction" level="WARN" />
12+
13+
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
14+
<logger name="org.springframework.web.servlet.mvc" level="WARN" />
15+
16+
<root level="INFO">
17+
<appender-ref ref="STDOUT" />
18+
</root>
19+
</configuration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.class
2+
3+
#folders#
4+
/target
5+
/neoDb*
6+
/data
7+
/src/main/webapp/WEB-INF/classes
8+
*/META-INF/*
9+
10+
# Packaged files #
11+
*.jar
12+
*.war
13+
*.ear
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
John Jane Adam Tom
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
John
2+
Jane
3+
Adam
4+
Tom
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world
4 Bytes
Binary file not shown.

guava/README.md

-14
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,19 @@
44

55

66
### Relevant Articles:
7-
- [Guava Collections Cookbook](http://www.baeldung.com/guava-collections)
8-
- [Guava Ordering Cookbook](http://www.baeldung.com/guava-order)
97
- [Guava Functional Cookbook](http://www.baeldung.com/guava-functions-predicates)
10-
- [Hamcrest Collections Cookbook](http://www.baeldung.com/hamcrest-collections-arrays)
11-
- [Partition a List in Java](http://www.baeldung.com/java-list-split)
12-
- [Filtering and Transforming Collections in Guava](http://www.baeldung.com/guava-filter-and-transform-a-collection)
13-
- [Guava – Join and Split Collections](http://www.baeldung.com/guava-joiner-and-splitter-tutorial)
148
- [Guava – Write to File, Read from File](http://www.baeldung.com/guava-write-to-file-read-from-file)
15-
- [Guava – Lists](http://www.baeldung.com/guava-lists)
16-
- [Guava – Sets](http://www.baeldung.com/guava-sets)
17-
- [Guava – Maps](http://www.baeldung.com/guava-maps)
189
- [Guava Set + Function = Map](http://www.baeldung.com/guava-set-function-map-tutorial)
1910
- [Guide to Guava’s Ordering](http://www.baeldung.com/guava-ordering)
2011
- [Guide to Guava’s PreConditions](http://www.baeldung.com/guava-preconditions)
2112
- [Introduction to Guava CacheLoader](http://www.baeldung.com/guava-cacheloader)
2213
- [Introduction to Guava Memoizer](http://www.baeldung.com/guava-memoizer)
2314
- [Guide to Guava’s EventBus](http://www.baeldung.com/guava-eventbus)
24-
- [Guide to Guava Multimap](http://www.baeldung.com/guava-multimap)
25-
- [Guide to Guava RangeSet](http://www.baeldung.com/guava-rangeset)
26-
- [Guide to Guava RangeMap](http://www.baeldung.com/guava-rangemap)
2715
- [Guide to Guava Table](http://www.baeldung.com/guava-table)
2816
- [Guide to Guava’s Reflection Utilities](http://www.baeldung.com/guava-reflection)
2917
- [Guide to Guava ClassToInstanceMap](http://www.baeldung.com/guava-class-to-instance-map)
30-
- [Guide to Guava MinMaxPriorityQueue and EvictingQueue](http://www.baeldung.com/guava-minmax-priority-queue-and-evicting-queue)
3118
- [Guide to Mathematical Utilities in Guava](http://www.baeldung.com/guava-math)
3219
- [Bloom Filter in Java using Guava](http://www.baeldung.com/guava-bloom-filter)
3320
- [Using Guava CountingOutputStream](http://www.baeldung.com/guava-counting-outputstream)
3421
- [Hamcrest Text Matchers](http://www.baeldung.com/hamcrest-text-matchers)
3522
- [Quick Guide to the Guava RateLimiter](http://www.baeldung.com/guava-rate-limiter)
36-
- [Initialize a HashMap in Java](https://www.baeldung.com/java-initialize-hashmap)

guava/pom.xml

-7
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
</parent>
1515

1616
<dependencies>
17-
<!-- utils -->
18-
<dependency>
19-
<groupId>org.apache.commons</groupId>
20-
<artifactId>commons-collections4</artifactId>
21-
<version>${commons-collections4.version}</version>
22-
</dependency>
2317
<dependency>
2418
<groupId>org.apache.commons</groupId>
2519
<artifactId>commons-lang3</artifactId>
@@ -56,7 +50,6 @@
5650
<!-- util -->
5751
<guava.version>24.0-jre</guava.version>
5852
<commons-lang3.version>3.5</commons-lang3.version>
59-
<commons-collections4.version>4.1</commons-collections4.version>
6053

6154
<!-- testing -->
6255
<assertj.version>3.6.1</assertj.version>

pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@
372372
<module>google-web-toolkit</module>
373373
<module>gson</module>
374374
<module>guava</module>
375+
<module>guava-collections</module>
375376
<module>guava-modules/guava-18</module>
376377
<module>guava-modules/guava-19</module>
377378
<module>guava-modules/guava-21</module>
@@ -1279,6 +1280,7 @@
12791280
<module>google-cloud</module>
12801281
<module>gson</module>
12811282
<module>guava</module>
1283+
<module>guava-collections</module>
12821284
<module>guava-modules/guava-18</module>
12831285
<module>guava-modules/guava-19</module>
12841286
<module>guava-modules/guava-21</module>

0 commit comments

Comments
 (0)