Comments (13)
三 工厂模式介绍中 ifelse写错了
from codeguide.
@hashming
很棒!!!总的来说多了接口这个概念,把三个业务都要实现的功能抽象了出来
头像很帅,欢迎继续阅读,打卡留言总结😄
from codeguide.
1 == commodityType,int == Integer这种写法不符合java代码规范,当int值超出127时会报错,建议改成equals
from codeguide.
@hhjuliet
1 == commodityType,int == Integer这种写法不符合java代码规范,当int值超出127时会报错,建议改成equals
from codeguide.
@aitanjiujue
三 工厂模式介绍中 ifelse写错了
修复完成,感谢😄
from codeguide.
支持下,很不错的示例,不过本示例看上去更像是简单工厂模式
from codeguide.
整理重构会你会发现代码结构清晰了 语句不通顺
from codeguide.
@SupremeIdol
整理重构会你会发现代码结构清晰了 语句不通顺
收到,感谢😄
from codeguide.
很棒!!!总的来说多了接口这个概念,把三个业务都要实现的功能抽象了出来
from codeguide.
@hhjuliet
1 == commodityType,int == Integer这种写法不符合java代码规范,当int值超出127时会报错,建议改成equals
对的!文中更多为了简化了
,使用equal
更加标准 😄
from codeguide.
这明明是简单工厂模式呀
from codeguide.
为什么感觉不到和策略模式的区别嘞
from codeguide.
@bxguo
为什么感觉不到和策略模式的区别嘞
写写案例感受下😄
from codeguide.
Related Issues (20)
- frank
- 时间胶囊吧 HOT 1
- 勘误:《面经手册》,第3篇《HashMap核心知识》 数据迁移部分示例
- 工厂方法哪里请老师答疑一下
- 普通双检锁线程不安全吧
- 面经手册第17篇《ReentrantLock之AQS原理分析和实践使用》中图的问题
- 5年后
- 奇小5年后的目标
- 1
- 面经手册 · 第12篇《面试官,ThreadLocal 你要这么问,我就挂了!》里面 4.2 设置元素是否有误?
- 关于Netty中处理半包、粘包数据章节中处理协议开始标志位
- 给五年后的自己
- 第五章 cn.bugstack.springframework.beans.PropertyValue 有误 HOT 1
- 一个简单的能力,决定你是否会学习!文档里面缺少超链接
- lin
- 5年后的我
- Looking forward to some insight to my code files!
- 好多文章中的个别图片出现损坏 HOT 1
- 发财就行
- 关于领域驱动设计博客中的代码的优化建议
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeguide.