Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
デザパタ勉強会!Bridgeパターン
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Java女子部
November 29, 2022
Programming
140
0
Share
デザパタ勉強会!Bridgeパターン
https://javajo.doorkeeper.jp/events/144579
Java女子部
November 29, 2022
More Decks by Java女子部
See All by Java女子部
モダンJava再入門ハンズオン Java in Education For JUGs
javawomen
0
170
デザインパターン勉強会(Facade&Mediator)
javawomen
0
210
みんな大好きJava 8から9月リリースJava 17まで!最近のJava事情あれこれ / Java catch up from 8 to 17
javawomen
2
1.2k
お客様の中にJava女子部とお付き合いしてくださる方はいませんか?
javawomen
0
350
【子ども向けハンズオン】 ゲームで学ぼう、プログラミング!
javawomen
0
870
Java女子部について
javawomen
1
92
Other Decks in Programming
See All in Programming
Understanding Apache Lucene - More than just full-text search
spinscale
0
150
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
820
Codex の「自走力」を高める
yorifuji
0
1.3k
Geminiをパートナーに神社DXシステムを個人開発した話(いなめぐDX 開発振り返り)
fujiba
0
130
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
130
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
280
テレメトリーシグナルが導くパフォーマンス最適化 / Performance Optimization Driven by Telemetry Signals
seike460
PRO
2
200
今年もTECHSCOREブログを書き続けます!
hiraoku101
0
210
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
500
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
460
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
330
PHPで TLSのプロトコルを実装してみる
higaki_program
0
720
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
470
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
300
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
What's in a price? How to price your products and services
michaelherold
247
13k
Ruling the World: When Life Gets Gamed
codingconduct
0
190
Music & Morning Musume
bryan
47
7.1k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
160
Design in an AI World
tapps
0
190
Transcript
デザパタ勉強会! Bridgeパターン 2022/11/26
Bridgeパターンとは? 「機能のクラス階層」と「実装のクラス階層」を分けて実装する実装パターン。 実装クラスのインスタンスを機能クラスに渡すことで二つの世界の橋渡しをするのでブ リッジパターンという! Animal SleepingAnimal DogImpl RabbitImpl LionImpl AnimalImpl
CatImpl 橋渡し! 機能のクラス階層 実装のクラス階層
Bridgeパターンにすると何が嬉しい? 実装のクラスに影響を与えずに機能の追加ができる! CatImpl DogImpl RabbitImpl RionImpl AnimalImpl Animal Animalに共通の「寝る」機能を追 加しようかな〜
SleepingAnimal こっちの変更がいらない!
Bridgeパターンの主な人物像 Abstraction • class • 機能クラス Imprementor • 実装クラス •
abstractクラス • Abstractionを保持する Refind Abstraction • 機能クラスの拡張 • extends Abstraction Concrete Imprementior • 実装クラスの拡張 • class • extends Imprementor public class Animal { private AnimalImpl impl;