Skip to content

huypva/composite-pattern-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The example project of composite pattern

Prerequisites

Make sure following software is installed on your PC

Project structure

.
├── composite-pattern
│   ├── pom.xml
│   ...
├── pom.xml
|
└── README.md

Start project

$ ./mvnw clean package
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.051 s
[INFO] Finished at: 2023-05-17T09:02:25+07:00
[INFO] ------------------------------------------------------------------------
$ java -jar ./composite-pattern/target/composite-pattern-0.0.1-SNAPSHOT.jar
09:01:58.097 [main] INFO io.github.huypva.compositepattern.Composite -- Composite 1 operate!
09:01:58.099 [main] INFO io.github.huypva.compositepattern.Leaf -- Leaf 1 operate!
09:01:58.099 [main] INFO io.github.huypva.compositepattern.Composite -- Composite 2 operate!
09:01:58.099 [main] INFO io.github.huypva.compositepattern.Leaf -- Leaf 2 operate!

Contribute

The code is open sourced. I encourage fellow developers to contribute and help improve it!

  • Fork it
  • Create your feature branch (git checkout -b new-feature)
  • Ensure all tests are passing
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages