上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 61 下一页
摘要: 原型模式: – 通过new产生一个对象需要非常繁琐的数据准备或访问权限,则可以使用原型模式。 – 就是java中的克隆技术,以某个对象为原型,复制出新的对象。显然,新的对象具备原型对象的特点 – 优势有:效率高(直接克隆,避免了重新执行构造过程步骤) 。 – 克隆类似于new,但是不同于new。ne 阅读全文
posted @ 2019-11-24 21:15 石shi 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Oralce行定位与rowid: drop table t purge; create table t as select * from dba_objects; create index idx_object_id on t(object_id); set linesize 1000 set au 阅读全文
posted @ 2019-11-17 19:54 石shi 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 工厂模式: – 实现了创建者和调用者的分离。 – 详细分类: • 简单工厂模式 • 工厂方法模式 • 抽象工厂模式• 面向对象设计的基本原则: – OCP(开闭原则,Open-Closed Principle):一个软件的实体应当对扩展开 放,对修改关闭。 DIP(依赖倒转原则,Dependence 阅读全文
posted @ 2019-11-13 21:25 石shi 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 创建型模式: – 单例模式、工厂模式、抽象工厂模式、建造者模式、原型模式。 • 结构型模式: – 适配器模式、桥接模式、装饰模式、组合模式、外观模式、享元模式、代理模 式。 • 行为型模式: – 模版方法模式、命令模式、迭代器模式、观察者模式、中介者模式、备忘录模 式、解释器模式、状态模式、策略模式 阅读全文
posted @ 2019-11-11 21:37 石shi 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Build Project之后生成 在窗体中运行 阅读全文
posted @ 2019-11-07 21:20 石shi 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1. ConcurrentLinkedQueue 基础链表同步队列。 LinkedBlockingQueue 阻塞队列,队列容量不足自动阻塞,队列容量为 0 自动阻塞 ArrayBlockingQueue 底层数组实现的有界队列。自动阻塞。根据调用 API(add/put/offer)不同,有不同特 阅读全文
posted @ 2019-11-07 09:37 石shi 阅读(695) 评论(0) 推荐(0) 编辑
摘要: Java 虚拟机中的同步(Synchronization)基于进入和退出管程(Monitor)对象实现。同步方 法 并不是由 monitor enter 和 monitor exit 指令来实现同步的,而是由方法调用指令读取运 行时常量池中方法的 ACC_SYNCHRONIZED 标志来隐式实现的 阅读全文
posted @ 2019-11-05 19:29 石shi 阅读(127) 评论(0) 推荐(0) 编辑
摘要: TreeSet实现排序: TreeMap实现排序: 阅读全文
posted @ 2019-11-04 20:10 石shi 阅读(2297) 评论(0) 推荐(0) 编辑
摘要: 1、安装和启动docker yum update -y yum install -y yum-utils yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum -y inst 阅读全文
posted @ 2019-11-01 21:42 石shi 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 需求:需要做甘特图的显示,并且在甘特中加载图片。图片太多,写判断代码太多。用反射吧。 核心代码: 以上的代码,就能获取到资源文件。 阅读全文
posted @ 2019-10-29 15:25 石shi 阅读(3106) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 61 下一页