模式定义 状态模式同意对象在内部状态改变时改变它的行为,对象看起来好像改动了它的类。 模式结构: Context: 环境定义客户感兴趣的接口 维护一个ConcreteState子类的实例,这个实例定义当前状态 State: 定义一个接口封装与Context的一个特定状态相关的行为 ConcreteS ...
分类:
编程语言 时间:
2017-04-23 20:45:05
阅读次数:
206
1、Hadoop 项目的四大模块 Hadoop Common: The common utilities that support the other Hadoop modules.Hadoop Distributed File System (HDFS?): A distributed file ...
分类:
其他好文 时间:
2017-04-23 20:11:07
阅读次数:
222
Other men live to eat, while I eat to live. 很多人为食而生存,而我为生存而食。 Just the same, either you eat to live or you live to eat. But there may be something dif ...
分类:
其他好文 时间:
2017-04-23 15:06:47
阅读次数:
181
Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating ...
分类:
其他好文 时间:
2017-04-23 15:06:37
阅读次数:
191
Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on it. If she ...
分类:
其他好文 时间:
2017-04-23 14:59:48
阅读次数:
170
题目: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra spac ...
分类:
其他好文 时间:
2017-04-23 13:24:12
阅读次数:
147
如今laravel来到5.4版本,更方便引入vue了,具体步骤如下: 下图为我动到的文件 1.下载laravel5.4 2.命令行(laravel5.4目录下):composer install 3.新建.env文件,把.env.example里的内容复制到.env文件中 4.生成key,命令行:P ...
分类:
其他好文 时间:
2017-04-23 10:41:43
阅读次数:
665
I Think I Need a Houseboat Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13043 Accepted Submiss ...
分类:
其他好文 时间:
2017-04-22 19:46:24
阅读次数:
193
使用Myeclipse,将eclipse下的工程复制过来后,发现提示Tomcat 7.0 unbound。缺少Server Runtime。 解决方法如下: 1,File->New->Other->Server->Server(注意在new时,需要勾上Show All Wizards),下一步,选择 ...
分类:
系统相关 时间:
2017-04-22 18:52:53
阅读次数:
201
Youth is not a time of life, it is a state of mind. 青春不是一段年华,而是一种心境。 Likewise, maturity is not a time of life, it is also a state of mind. Time can gr ...
分类:
其他好文 时间:
2017-04-22 13:09:04
阅读次数:
219