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

Decorator pattern Implementation#1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
yanglbme merged 4 commits intoTheAlgorithms:Developmentfromali4j:Development
Dec 15, 2019

Conversation

@ali4j
Copy link

I've implemented Decorator Pattern.
Here are the list of changes:

  1. EmailSender class sends emails as plain text, it should be decorated (without modification) so that emails gets encoded and compressed.
  2. SenderDecorator class implementsSender interface and provides a base class for decorator pattern.
  3. CompressingDecorator andEncodingDecorator classes are two implementaions ofSender interface that compress and encode emails.
  4. and finallyDecoratorDemo class provides some tests for demonstrating the utilization of Decorator Patern.

@yanglbmeyanglbme merged commit3fe20e3 intoTheAlgorithms:DevelopmentDec 15, 2019
ali4j added a commit to ali4j/Java that referenced this pull requestDec 25, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@yanglbmeyanglbmeyanglbme approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ali4j@yanglbme

[8]ページ先頭

©2009-2025 Movatter.jp