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

Lines changed: 13 additions & 0 deletions
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

Lines changed: 20 additions & 0 deletions
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

Lines changed: 66 additions & 0 deletions
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>
Lines changed: 19 additions & 0 deletions
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>

0 commit comments

Comments
 (0)