Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shaikrasheed99/builder-pattern
Implementation of Builder Pattern.
https://github.com/shaikrasheed99/builder-pattern
builder-pattern design-patterns java tdd tdd-java
Last synced: about 1 month ago
JSON representation
Implementation of Builder Pattern.
- Host: GitHub
- URL: https://github.com/shaikrasheed99/builder-pattern
- Owner: shaikrasheed99
- Created: 2022-04-17T13:19:09.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-17T14:03:50.000Z (almost 3 years ago)
- Last Synced: 2024-11-14T04:27:07.662Z (3 months ago)
- Topics: builder-pattern, design-patterns, java, tdd, tdd-java
- Language: Java
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Builder pattern example using Test Driven Development
## Example (Car):
* There are two different types of cars.
* Normal cars and Electric cars should be created with the builders.
* Electric car builder would create electric car from it.
* Normal car builder would create normal car.
* Since, the state of the car is so long and client cannot remember everything and their order.
* So the client uses these builders to a car from parameters which he remembers.
### code [electric car](https://github.com/shaikrasheed99/builder-pattern/tree/master/src/main/java/com/tw)
### code [normal car](https://github.com/shaikrasheed99/builder-pattern/tree/master/src/main/java/com/tw)
## Class diagram:
![](class-diagrams/builder-pattern.png)