The book "Eclipse Collections Categorically: Level up your programming game" introduces the idea of using method categories to organize feature-rich Java APIs so they are easier to learn and comprehend. The source code and JavaDoc for the RichIterable class has been updated in the Eclipse Collections 12.0 release to emulate method categories. When using Eclipse Collections 12.0 or above in IntelliJ IDEA, the structure view and source view will show the method categories for RichIterable when browsing the source. See the image below showing RichIterable in the structure view (left pane) and source view (right pane).
The following Table of Contents contains a full index of all the example numbers with unit test names included in the chapters of the Eclipse Collections Categorically book. There are sample source code examples linked from each chapter below. The samples are currently limited to two per chapter. The samples are JUnit 5 tests that can be executed. When you compile and run the tests, there should be 22 passing tests.
Some of the tests use the shared domain classes named Generation and PresidentOfUSA which are also included from the book. Both domain classes are implemented as Java Enums and are used for historical querying purposes only.
| Table of Contents |
|---|
Chapter 1 - 💡 Why Learn Eclipse Collections? |
Chapter 2 - 🎼 Eclipse Collections Fundamentals |
Chapter 3 - 🧮 Counting Methods |
Chapter 4 - 🧪 Testing Methods |
Chapter 5 - 🔎 Finding Methods |
Chapter 6 - 🚰 Filtering Methods |
Chapter 7 - 🦋 Transforming Methods |
Chapter 8 - 🏘 Grouping Methods |
Chapter 9 - 📊 Aggregating Results |
Chapter 10 - ⊆ Set Operations |
Chapter 11 - 🔐 Key Things to Remember |
The source code in this project has been compiled and tested using Java 21 and Maven 3.9.9. Later versions of Java may be used as well.
The code in this project has been tested and works with Eclipse Collections 11.1.0, 12.0.0 and 13.0.0. The project in this repo uses Eclipse Collections 13.0.0, which is compatible with Java 17 or above. The code in the published book was originally tested against Eclipse Collections 11.1.0. Eclipse Collections 11.1.0 is compatible with Java 8 or above. Eclipse Collections 12.0.0 is compatible with Java 11 or above.
Eclipse Collections Categorically: Level up your programming game is available for purchase at the following direct links.
-
Amazon
-
Barnes and Noble
Note: All print versions of the book are in full color. The Amazon Hardcover edition is printed on premium paper and uses slightly larger fonts.
