mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-18 04:28:04 +00:00
fix: Fix typos (#2834)
* fix typos * fix typo * fix typo * fix typos * fix typo
This commit is contained in:
@@ -26,7 +26,7 @@ solve common problems when designing an application or system.
|
|||||||
Design patterns can speed up the development process by providing tested, proven
|
Design patterns can speed up the development process by providing tested, proven
|
||||||
development paradigms.
|
development paradigms.
|
||||||
|
|
||||||
Reusing design patterns help prevent subtle issues that cause major
|
Reusing design patterns helps prevent subtle issues that cause major
|
||||||
problems, and it also improves code readability for coders and architects who
|
problems, and it also improves code readability for coders and architects who
|
||||||
are familiar with the patterns.
|
are familiar with the patterns.
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import com.iluwatar.featuretoggle.user.User;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple interfaces to allow the calling of the method to generate the welcome message for a given
|
* Simple interfaces to allow the calling of the method to generate the welcome message for a given
|
||||||
* user. While there is a helper method to gather the the status of the feature toggle. In some
|
* user. While there is a helper method to gather the status of the feature toggle. In some
|
||||||
* cases there is no need for the {@link Service#isEnhanced()} in {@link
|
* cases there is no need for the {@link Service#isEnhanced()} in {@link
|
||||||
* com.iluwatar.featuretoggle.pattern.tieredversion.TieredFeatureToggleVersion} where the toggle is
|
* com.iluwatar.featuretoggle.pattern.tieredversion.TieredFeatureToggleVersion} where the toggle is
|
||||||
* determined by the actual {@link User}.
|
* determined by the actual {@link User}.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
* requirements.
|
* requirements.
|
||||||
*
|
*
|
||||||
* <p><i>INTENT</i> <br>
|
* <p><i>INTENT</i> <br>
|
||||||
* The intent of this pattern is to separate the the synchronous and asynchronous processing in the
|
* The intent of this pattern is to separate the synchronous and asynchronous processing in the
|
||||||
* concurrent application by introducing two intercommunicating layers - one for sync and one for
|
* concurrent application by introducing two intercommunicating layers - one for sync and one for
|
||||||
* async. This simplifies the programming without unduly affecting the performance.
|
* async. This simplifies the programming without unduly affecting the performance.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ import lombok.NonNull;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An implementation of a Lockable object. This is the the Sword of Aragorn and every creature wants
|
* An implementation of a Lockable object. This is the Sword of Aragorn and every creature wants
|
||||||
* to posses it!
|
* to possess it!
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SwordOfAragorn implements Lockable {
|
public class SwordOfAragorn implements Lockable {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ tag:
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Intent
|
## Intent
|
||||||
Send partial response from server to client on need basis. Client will specify the the fields
|
Send partial response from server to client on need basis. Client will specify the fields
|
||||||
that it need to server, instead of serving all details for resource.
|
that it needs to server, instead of serving all details for resource.
|
||||||
|
|
||||||
## Class diagram
|
## Class diagram
|
||||||

|

|
||||||
@@ -16,7 +16,7 @@ that it need to server, instead of serving all details for resource.
|
|||||||
## Applicability
|
## Applicability
|
||||||
Use the Partial Response pattern when
|
Use the Partial Response pattern when
|
||||||
|
|
||||||
* Client need only subset of data from resource.
|
* Client needs only subset of data from resource.
|
||||||
* To avoid too much data transfer over wire
|
* To avoid too much data transfer over wire
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|||||||
Reference in New Issue
Block a user