Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce4a6df

Browse files
committed
2 parents95699c5 +ddb9b14 commitce4a6df

File tree

5 files changed

+362
-7
lines changed

5 files changed

+362
-7
lines changed

‎.all-contributorsrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,6 +1604,24 @@
16041604
"contributions": [
16051605
"code"
16061606
]
1607+
},
1608+
{
1609+
"login":"Conhan93",
1610+
"name":"Conny Hansson",
1611+
"avatar_url":"https://avatars.githubusercontent.com/u/71334757?v=4",
1612+
"profile":"https://github.com/Conhan93",
1613+
"contributions": [
1614+
"doc"
1615+
]
1616+
},
1617+
{
1618+
"login":"muklasr",
1619+
"name":"Muklas Rahmanto",
1620+
"avatar_url":"https://avatars.githubusercontent.com/u/43443753?v=4",
1621+
"profile":"http://muklasr.medium.com",
1622+
"contributions": [
1623+
"translation"
1624+
]
16071625
}
16081626
],
16091627
"contributorsPerLine":4,

‎README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=iluwatar_java-design-patterns&metric=coverage)](https://sonarcloud.io/dashboard?id=iluwatar_java-design-patterns)
1111
[![Join the chat athttps://gitter.im/iluwatar/java-design-patterns](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/iluwatar/java-design-patterns?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1212
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section-->
13-
[![All Contributors](https://img.shields.io/badge/all_contributors-176-orange.svg?style=flat-square)](#contributors-)
13+
[![All Contributors](https://img.shields.io/badge/all_contributors-178-orange.svg?style=flat-square)](#contributors-)
1414
<!-- ALL-CONTRIBUTORS-BADGE:END-->
1515

1616
<br/>
1717

18-
Read in different language :[**zh**](localization/zh/README.md),[**ko**](localization/ko/README.md),[**fr**](localization/fr/README.md),[**tr**](localization/tr/README.md),[**ar**](localization/ar/README.md),[**es**](localization/es/README.md),[**pt**](localization/pt/README.md)
18+
Read in different language :[**zh**](localization/zh/README.md),[**ko**](localization/ko/README.md),[**fr**](localization/fr/README.md),[**tr**](localization/tr/README.md),[**ar**](localization/ar/README.md),[**es**](localization/es/README.md),[**pt**](localization/pt/README.md),[**id**](localization/id/README.md)
1919

2020
<br/>
2121

@@ -339,6 +339,10 @@ This project is licensed under the terms of the MIT license.
339339
<td align="center"><a href="https://stackoverflow.com/users/308565/nagaraj-tantri"><img src="https://avatars.githubusercontent.com/u/3784194?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nagaraj Tantri</b></sub></a><br /><a href="https://github.com/iluwatar/java-design-patterns/commits?author=tan31989" title="Code">💻</a></td>
340340
<td align="center"><a href="http://scuccimarri.it"><img src="https://avatars.githubusercontent.com/u/7107651?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Francesco Scuccimarri</b></sub></a><br /><a href="https://github.com/iluwatar/java-design-patterns/commits?author=frascu" title="Code">💻</a></td>
341341
</tr>
342+
<tr>
343+
<td align="center"><a href="https://github.com/Conhan93"><img src="https://avatars.githubusercontent.com/u/71334757?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Conny Hansson</b></sub></a><br /><a href="https://github.com/iluwatar/java-design-patterns/commits?author=Conhan93" title="Documentation">📖</a></td>
344+
<td align="center"><a href="http://muklasr.medium.com"><img src="https://avatars.githubusercontent.com/u/43443753?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Muklas Rahmanto</b></sub></a><br /><a href="#translation-muklasr" title="Translation">🌍</a></td>
345+
</tr>
342346
</table>
343347

344348
<!-- markdownlint-restore-->

‎active-object/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags:
1111

1212

1313
##Intent
14-
The active object design pattern decouples method execution from method invocation for objects that each reside in their thread of control. The goal is to introduce concurrency, by using asynchronous method invocation and a scheduler for handling requests.
14+
The active object design pattern decouples method execution from method invocation for objects that each reside in their thread of control. The goal is to introduce concurrency, by using asynchronous method invocation, and a scheduler for handling requests.
1515

1616
##Explanation
1717

@@ -70,7 +70,7 @@ public abstract class ActiveCreature{
7070
requests.put(newRunnable() {
7171
@Override
7272
publicvoidrun() {
73-
logger.info("{} has started to roamandthe wastelands.",name());
73+
logger.info("{} has started to roam the wastelands.",name());
7474
}
7575
}
7676
);
@@ -82,7 +82,7 @@ public abstract class ActiveCreature{
8282
}
8383
```
8484

85-
We can see that any class that will extend the ActiveCreature class will have its own thread of control toexecute andinvocate methods.
85+
We can see that any class that will extend the ActiveCreature class will have its own thread of control toinvoke andexecute methods.
8686

8787
For example, the Orc class:
8888

@@ -96,7 +96,7 @@ public class Orc extends ActiveCreature {
9696
}
9797
```
9898

99-
Now, we can create multiple creatures such as Orcs, tell them to eat and roam and they will execute it on their own thread of control:
99+
Now, we can create multiple creatures such as Orcs, tell them to eat and roam, and they will execute it on their own thread of control:
100100

101101
```java
102102
publicstaticvoid main(String[] args) {

‎active-object/src/main/java/com/iluwatar/activeobject/ActiveCreature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void eat() throws InterruptedException {
8282
}
8383

8484
/**
85-
* Roaminthe wastelands.
85+
* Roam the wastelands.
8686
* @throws InterruptedException due to firing a new Runnable.
8787
*/
8888
publicvoidroam()throwsInterruptedException {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp