Christopher O'Connell 7c5d5f6b0d 1010: Fixed all of the blocking and critical Sonarcloud errors (#1020)
* 1011: Added SuppressWarnings for SonarCloud errors

All of these files are causing SonarCloud to report the following error:

Loops should not be infinite

Since these instances all require an infinite loop that will never end,
these warnings should be disabled so that SonarCloud no longer reports
them as error.

The rule is: squid:S2189

* 1011: Made all of the randoms static and final

According to SonarCloud rule: "Random" objects should be reused, randoms
should not be recreated. This commit has taken all of the Randoms and made
them constant variables in the files that are using them.
2019-10-19 20:04:44 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2019-10-12 20:05:54 +03:00
2015-12-27 22:44:15 -05:00
2019-02-15 20:00:21 +02:00
2019-10-18 23:09:27 +03:00
2019-10-12 20:05:54 +03:00

Design patterns implemented in Java

Build status License MIT Join the chat at https://gitter.im/iluwatar/java-design-patterns Sonarcloud Status

Introduction

Design patterns are the best formalized practices a programmer can use to solve common problems when designing an application or system.

Design patterns can speed up the development process by providing tested, proven development paradigms.

Reusing design patterns help prevent subtle issues which cause major problems, and it also improves code readability for coders and architects who are familiar with the patterns.

Getting started

This site showcases Java Design Patterns. The solutions have been developed by experienced programmers and architects from the open source community. The patterns can be browsed by their high level descriptions or by looking at their source code. The source code examples are well commented and can be thought as programming tutorials how to implement a specific pattern. We use the most popular battle-proven open source Java technologies.

Before you dive into the material, you should be familiar with various software design principles.

All designs should be as simple as possible. You should start with KISS, YAGNI, and Do The Simplest Thing That Could Possibly Work principles. Complexity and patterns should only be introduced when they are needed for practical extensibility.

Once you are familiar with these concepts you can start drilling down into patterns by any of the following approaches

  • Using difficulty tags, Difficulty-Beginner, Difficulty-Intermediate & Difficulty-Expert.
  • Using pattern categories, Creational, Behavioral and others.
  • Search for a specific pattern. Can't find one? Please report a new pattern here.

Hopefully you find the object oriented solutions presented on this site useful in your architectures and have as much fun learning them as we had developing them.

How to contribute

If you are willing to contribute to the project you will find the relevant information in our developer wiki. We will help you and answer your questions in the Gitter chatroom.

License

This project is licensed under the terms of the MIT license.

Languages
Java 99.1%
HTML 0.6%
CSS 0.3%