Skip to content

Commit 4072ad4

Browse files
committed
Added Delegator
1 parent 5cafa3c commit 4072ad4

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Implementations of Design Patterns in Java
22

33
**Creational Patterns:** Singleton, Factory Method, Abstract Factory, Builder, Prototype
44

5-
**Structural Patterns:** Delegator, Adapter, Proxy, Bridge, Decorator
5+
**Structural Patterns:** StructuralPatterns.Delegator, StructuralPatterns.Adapter, StructuralPatterns.Proxy, Bridge, Decorator
66

77
**Behavioral Patterns:** Iterator, Memento, State, Chain of Responsibility, Visitor, Mediator, Strategy, Callback, Observer
88

9-
**Concurrency Patterns:** Adapter in concurrency, Observer (Listener), Thread Pool, Thread-safe singleton, Double-Checked Lock-DCL, Read/Write Lock, Leader/Followers
9+
**Concurrency Patterns:** StructuralPatterns.Adapter in concurrency, Observer (Listener), Thread Pool, Thread-safe singleton, Double-Checked Lock-DCL, Read/Write Lock, Leader/Followers
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package StructuralPatterns.Delegator;
2+
3+
public class Child {
4+
private Dad dad;
5+
private Mom mom;
6+
7+
public Child(){
8+
this.dad = new Dad();
9+
this.mom = new Mom();
10+
}
11+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package StructuralPatterns.Delegator;
2+
3+
public class Dad {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package StructuralPatterns.Delegator;
2+
3+
public class Mom {
4+
}

0 commit comments

Comments
 (0)