最近在阅读Framework Design
Guidelines,本着现学现用的原则,于是就用FxCop工具对代码进行规范性检查时,发现了很多问题,其中包括命名以及一些设计上的规范。其中,Do not
expose generic lists 这条设计规范引起了我的注意。该规范指出“不要在对象模型中...
分类:
其他好文 时间:
2014-05-26 12:32:20
阅读次数:
294
Guava Maven Dependency com.google.guava guava
{guava.version}Guava 常用方法示例Lists实例化 ListList list = Lists.newArrayList();Maps实例化
MapMap>> map =...
分类:
其他好文 时间:
2014-05-26 10:53:50
阅读次数:
233
labels:Collection List Set和Map用法与区别 java 散列表
集合Collection接 口的接口对 象的集合├List子接口按进入先后有序保存可
重复│├LinkedList接口实现类链表插入删除没有同步线程不安全│├ArrayList接口实现类数组随机访问没有同步线程...
分类:
其他好文 时间:
2014-05-26 10:20:32
阅读次数:
177
Given a linked list and a value x, partition it
such that all nodes less than x come before nodes greater than or equal to x.You
should preserve the o...
分类:
其他好文 时间:
2014-05-26 09:35:28
阅读次数:
266
clone of complex linked list.
分类:
其他好文 时间:
2014-05-26 09:34:02
阅读次数:
264
集合类说明及区别Collection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtable├HashMap└WeakHashMapCollection接口
Collection是最基本的集合接口,一个Collection代表一组O....
分类:
编程语言 时间:
2014-05-26 09:32:53
阅读次数:
258
Given a linked list, remove the nth node from
the end of list and return its head. For example, Given linked list:
1->2->3->4->5, and n = 2. After rem...
分类:
其他好文 时间:
2014-05-26 09:08:23
阅读次数:
262
在做iOS开发时,经常用到到plist文件, 那plist文件是什么呢?
它全名是:Property
List,属性列表文件,它是一种用来存储串行化后的对象的文件。属性列表文件的扩展名为.plist,因此通常被称为plist文件。文件是xml格式的。Plist文件通常用于储存用户设置,也可以用于存储...
分类:
移动开发 时间:
2014-05-26 08:48:07
阅读次数:
253
第1章
容器第1条:慎重选择容器类型。标准STL序列容器:vector、string、deque和list。标准STL关联容器:set、multiset、map和multimap。非标准序列容器slist和rope。slist是一个单向链表,rope本质上是一“重型”string。非标准的关联容器h...
分类:
编程语言 时间:
2014-05-26 08:14:34
阅读次数:
384
假定web application 名称为news,你在浏览器中输入请求路径:
http://localhost:8080/news/main/list.jsp 则执行下面向行代码后打印出如下结果:1、
System.out.println(request.getContextPath()); 打印...
分类:
其他好文 时间:
2014-05-24 08:05:54
阅读次数:
264