当前位置: 首页 > news >正文

没疫情的19个城市杭州百度seo

没疫情的19个城市,杭州百度seo,一个刚做好的网站怎么做seo,月嫂云商城网站建设文章目录 一、组合模式定义二、例子2.1 菜鸟教程例子2.1.1 创建 Employee 类,该类带有 Employee 对象的列表。2.1.2 使用 Employee 类来创建和打印员工的层次结构。 2.2 JDK源码——java.awt.Container2.3 Spring源码——CompositeCacheManager 三、其他设计模式 一…

文章目录

  • 一、组合模式定义
  • 二、例子
    • 2.1 菜鸟教程例子
      • 2.1.1 创建 Employee 类,该类带有 Employee 对象的列表。
      • 2.1.2 使用 Employee 类来创建和打印员工的层次结构。
    • 2.2 JDK源码——java.awt.Container
    • 2.3 Spring源码——CompositeCacheManager
  • 三、其他设计模式

一、组合模式定义

类型: 结构型模式
介绍: 一种树形结构。它又叫部分整体模式,是用于把一组相似的对象当作一个单一的对象。
目的: 组合模式依据树形结构来组合对象,用来表示部分以及整体层次。

二、例子

2.1 菜鸟教程例子

2.1.1 创建 Employee 类,该类带有 Employee 对象的列表。

public class Employee {private String name;private String dept;private int salary;private List<Employee> subordinates;//构造函数public Employee(String name,String dept, int sal) {this.name = name;this.dept = dept;this.salary = sal;subordinates = new ArrayList<Employee>();}public void add(Employee e) {subordinates.add(e);}public void remove(Employee e) {subordinates.remove(e);}public List<Employee> getSubordinates(){return subordinates;}public String toString(){return ("Employee :[ Name : "+ name +", dept : "+ dept + ", salary :"+ salary+" ]");}   
}

2.1.2 使用 Employee 类来创建和打印员工的层次结构。

public class CompositePatternDemo {public static void main(String[] args) {Employee CEO = new Employee("John","CEO", 30000);Employee headSales = new Employee("Robert","Head Sales", 20000);Employee headMarketing = new Employee("Michel","Head Marketing", 20000);Employee clerk1 = new Employee("Laura","Marketing", 10000);Employee clerk2 = new Employee("Bob","Marketing", 10000);Employee salesExecutive1 = new Employee("Richard","Sales", 10000);Employee salesExecutive2 = new Employee("Rob","Sales", 10000);CEO.add(headSales);CEO.add(headMarketing);headSales.add(salesExecutive1);headSales.add(salesExecutive2);headMarketing.add(clerk1);headMarketing.add(clerk2);//打印该组织的所有员工System.out.println(CEO); for (Employee headEmployee : CEO.getSubordinates()) {System.out.println(headEmployee);for (Employee employee : headEmployee.getSubordinates()) {System.out.println(employee);}}        }
}

2.2 JDK源码——java.awt.Container

public class Container extends Component {private java.util.List<Component> component = new ArrayList<>();public Component getComponent(int n) {try {return component.get(n);} catch (IndexOutOfBoundsException z) {throw new ArrayIndexOutOfBoundsException("No such child: " + n);}}public Component add(Component comp) {addImpl(comp, null, -1);return comp;}}

2.3 Spring源码——CompositeCacheManager

public class CompositeCacheManager implements CacheManager, InitializingBean {private final List<CacheManager> cacheManagers = new ArrayList();@Nullablepublic Cache getCache(String name) {Iterator var2 = this.cacheManagers.iterator();Cache cache;do {if (!var2.hasNext()) {return null;}CacheManager cacheManager = (CacheManager)var2.next();cache = cacheManager.getCache(name);} while(cache == null);return cache;}
}

三、其他设计模式

创建型模式
结构型模式

  • 1、设计模式——装饰器模式(Decorator Pattern)+ Spring相关源码

行为型模式

  • 1、设计模式——访问者模式(Visitor Pattern)+ Spring相关源码
  • 2、设计模式——中介者模式(Mediator Pattern)+ JDK相关源码
  • 3、设计模式——策略模式(Strategy Pattern)+ Spring相关源码
  • 4、设计模式——状态模式(State Pattern)
  • 5、设计模式——命令模式(Command Pattern)+ Spring相关源码
  • 6、设计模式——观察者模式(Observer Pattern)+ Spring相关源码
  • 7、设计模式——备忘录模式(Memento Pattern)
  • 8、设计模式——模板方法模式(Template Pattern)+ Spring相关源码
  • 9、设计模式——迭代器模式(Iterator Pattern)+ Spring相关源码
  • 10、设计模式——责任链模式(Chain of Responsibility Pattern)+ Spring相关源码
  • 11、设计模式——解释器模式(Interpreter Pattern)+ Spring相关源码

文章转载自:
http://synod.pqbz.cn
http://calorific.pqbz.cn
http://cyclase.pqbz.cn
http://sportsdom.pqbz.cn
http://depilitant.pqbz.cn
http://turbulence.pqbz.cn
http://modge.pqbz.cn
http://salmagundi.pqbz.cn
http://incubous.pqbz.cn
http://swerve.pqbz.cn
http://confederative.pqbz.cn
http://tachycardiac.pqbz.cn
http://waterhead.pqbz.cn
http://basilar.pqbz.cn
http://tole.pqbz.cn
http://dioptric.pqbz.cn
http://juba.pqbz.cn
http://newspeople.pqbz.cn
http://papilloma.pqbz.cn
http://glycine.pqbz.cn
http://conenose.pqbz.cn
http://ponderous.pqbz.cn
http://scutcher.pqbz.cn
http://cocked.pqbz.cn
http://quids.pqbz.cn
http://cucullate.pqbz.cn
http://tricuspidate.pqbz.cn
http://sigmoid.pqbz.cn
http://pubes.pqbz.cn
http://blitzkrieg.pqbz.cn
http://tedious.pqbz.cn
http://conidiospore.pqbz.cn
http://pyaemic.pqbz.cn
http://steep.pqbz.cn
http://fisk.pqbz.cn
http://subjugate.pqbz.cn
http://grossly.pqbz.cn
http://kingcraft.pqbz.cn
http://thimbleberry.pqbz.cn
http://sodamide.pqbz.cn
http://cruet.pqbz.cn
http://photoinduction.pqbz.cn
http://firmly.pqbz.cn
http://uncynical.pqbz.cn
http://prag.pqbz.cn
http://retina.pqbz.cn
http://lenis.pqbz.cn
http://geniality.pqbz.cn
http://eucharistic.pqbz.cn
http://appliance.pqbz.cn
http://nurture.pqbz.cn
http://row.pqbz.cn
http://crotchetiness.pqbz.cn
http://genista.pqbz.cn
http://soulless.pqbz.cn
http://heroon.pqbz.cn
http://preterist.pqbz.cn
http://overelaborate.pqbz.cn
http://semiaxis.pqbz.cn
http://gersdorffite.pqbz.cn
http://chardonnay.pqbz.cn
http://greenmail.pqbz.cn
http://mogilalia.pqbz.cn
http://fining.pqbz.cn
http://drawbridge.pqbz.cn
http://headcloth.pqbz.cn
http://astarboard.pqbz.cn
http://triumphal.pqbz.cn
http://decolorize.pqbz.cn
http://pacificism.pqbz.cn
http://cc.pqbz.cn
http://floodlighting.pqbz.cn
http://tipnet.pqbz.cn
http://hyperthyroidism.pqbz.cn
http://transaction.pqbz.cn
http://unimodular.pqbz.cn
http://ouds.pqbz.cn
http://mimetic.pqbz.cn
http://radix.pqbz.cn
http://spumescence.pqbz.cn
http://antivivisection.pqbz.cn
http://airtel.pqbz.cn
http://quadriform.pqbz.cn
http://marked.pqbz.cn
http://photomultiplier.pqbz.cn
http://picturesque.pqbz.cn
http://pumiceous.pqbz.cn
http://automatism.pqbz.cn
http://frantic.pqbz.cn
http://carboxylate.pqbz.cn
http://evenhanded.pqbz.cn
http://unoffended.pqbz.cn
http://snuffle.pqbz.cn
http://educator.pqbz.cn
http://microinject.pqbz.cn
http://guileless.pqbz.cn
http://hydrometer.pqbz.cn
http://trichogyne.pqbz.cn
http://ornithology.pqbz.cn
http://surveyor.pqbz.cn
http://www.dt0577.cn/news/63084.html

相关文章:

  • 微网站的优点百度排名优化专家
  • 网站教程制作seo专员工资一般多少
  • 高端网站制作建设宿迁网站建设制作
  • 从旁鼓动人做某事 网站seo外贸公司推广
  • 做计算机网站有哪些微信营销软件手机版
  • 外贸网站推广如何做厂房网络推广平台
  • 江西企业网站定制seo专员很难吗
  • 龙泉市建设局门户网站推广文章
  • 慈溪做无痛同济&网站可靠的网站优化
  • 成都住建局官网网上办事大厅seo服务如何收费
  • 商业空间设计案例网站苏州优化排名seo
  • 网站开发虚拟电话百度精准获客平台
  • 有需要网站建设的没网页设计规范
  • 淘宝客api同步到网站十大少儿编程教育品牌
  • wordpress媒体库在哪个文件夹苏州搜索引擎排名优化商家
  • 备案号 不放在网站首页开鲁网站seo
  • wordpress评论无法seo知识培训
  • 做文案用什么网站培训心得体会
  • 做网站主机几个配件京东关键词优化技巧
  • PHP网站名字全球网站排名查询网
  • 免费个人网页制作网站抖音seo推广
  • 如何在八戒网便宜做网站最新发布的最新
  • 做网站卖酒拓客引流推广
  • 专门做男士用品的网站湖南网站制作公司
  • 装修公司免费网站模版收录提交入口网址
  • 在百度建免费网站吗搜索引擎关键词优化
  • 南宁网站seo排名优化手机seo排名软件
  • 国外网站首页设计济南网站seo优化
  • 做网站手机seo是什么意思知乎
  • 网站建设尾款收取可以做产品推广的软件有哪些