How jbloch/effective-java-3e-source-code works
This repository is a collection of Java examples accompanying Effective Java, Third Edition, not a single application. Readers can browse independent examples of object construction, class design, generics, enums and annotations, lambdas and streams, API design, concurrency, and serialization. There is no repository-wide user-to-result workflow: each example demonstrates a focused technique. The graph highlights those topic areas and the sampled relationships that are explicit in source; chapter-level nodes use exact directories where individual implementations were not sampled.
Main entry points: ObservableSet.java Observable set · chapter8 API usage examples · Initialization.java Lazy initialization · DeserializationBomb.java Deserialization example
Components 18
Objects and APIs
- Object builders
src/effectivejava/chapter2/item2 - Resource handling
src/effectivejava/chapter2/item9 - Equality and ordering
src/effectivejava/chapter3/item10 - Phone cloning
src/effectivejava/chapter3/item13/PhoneNumber.java - Immutable values
src/effectivejava/chapter4/item17 - API design examples
src/effectivejava/chapter4/item25
Types and Generics
- Generic types
src/effectivejava/chapter5 - Annotations and tests
src/effectivejava/chapter6/item39
Enums and Functional
- Enum patterns
src/effectivejava/chapter6/item34 - Lambdas and streams
src/effectivejava/chapter7 - API usage examples
src/effectivejava/chapter8
Concurrency
- Observable set
src/effectivejava/chapter11/item79/ObservableSet.java - Set observer
src/effectivejava/chapter11/item79/SetObserver.java - Forwarding set
src/effectivejava/chapter11/item79/ForwardingSet.java - Lazy initialization
src/effectivejava/chapter11/item83/Initialization.java - Field value type
src/effectivejava/chapter11/item83/FieldType.java
Serialization
- Serialization utilities
src/effectivejava/chapter12/Util.java - Deserialization example
src/effectivejava/chapter12/item85/DeserializationBomb.java
Connections 5
- Observable set → Forwarding set: extends
src/effectivejava/chapter11/item79/ObservableSet.java - Observable set → Set observer: notifies
src/effectivejava/chapter11/item79/ObservableSet.java - Lazy initialization → Field value type: creates
src/effectivejava/chapter11/item83/Initialization.java - Deserialization example → Serialization utilities: serializes and deserializes
src/effectivejava/chapter12/item85/DeserializationBomb.java - API usage examples → API design examples: references
src/effectivejava/chapter4/item25/Main.java