-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (97 loc) · 4.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>usafchn's Notes</title>
<meta name="author" content="usafchn">
<meta name="description" content="Java C/C++ Algorithm">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:site_name" content="usafchn's Notes"/>
<meta property="og:image" content="undefined"/>
<link href="/favicon.png" rel="icon">
<link rel="alternate" href="/atom.xml" title="usafchn's Notes" type="application/atom+xml">
<link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">
</head>
<body>
<header id="header"><div class="meta inner">
<h1><a href="/">usafchn's Notes</a></h1>
<h2><a href="/">usafchn's tech blog</a></h2>
<nav id="main-nav">
<ul>
<li><a href="/archives">文章归档</a></li>
</ul>
<div class="clearfix"></div>
</nav>
</div>
<div class="clearfix"></div>
</header>
<div id="content" class="inner">
<div id="main-col" class="alignleft"><div id="wrapper">
<article class="post">
<div class="post-content">
<header>
<h1 class="title"><a href="/2014/08/02/RegularEnumSet/">JDK源码解读之RegularEnumSet</a></h1>
<time datetime="2014-08-02T05:42:49.000Z">2014/08/02</time>
</header>
<div class="entry">
<h2 id="缘由">缘由</h2>
<p>今天做项目的时候偶然用到EnumSet,EnumSet平时不太常用,比较陌生,于是点进去看了下源码,发现这个类还是比较有意思的,首先EnumSet是个抽象类,当我们调用EnumSet提供的静态函数创建对象的时候,实际创建的是RegularEnumSet或者JumboEnumSet,前者对应枚举成员少于64个的情况,后者不设枚举成员数量上限,当枚举成员数量大于64时,EnumSet实际创建的对象是JumboEnumSet类型。由于我定义的枚举成员数明显没到64,于是很自然的点进RegularEnumSet继续一探究竟…</p>
</div>
<footer>
<div class="alignleft">
<a href="/2014/08/02/RegularEnumSet/#more" class="more-link">Read More ›</a>
</div>
<div class="clearfix"></div>
</footer>
</div>
</article>
<article class="post">
<div class="post-content">
<header>
<h1 class="title"><a href="/2014/07/21/first_article/">第一篇文章</a></h1>
<time datetime="2014-07-21T12:58:19.000Z">2014/07/21</time>
</header>
<div class="entry">
<p>这个博客的搭建经历了漫长的探索过程,托管空间从最初的OpenShift到BAE到各类虚拟主机,都或多或少地存在着一些问题。经历过各种折腾,博客目前的状况是:</p>
<blockquote>
<ul>
<li>托管于GitHub,感谢GitHub提供了免费的个人空间</li>
<li>使用博客程序<a href="http://hexo.io/" target="_blank" rel="external">HEXO</a>,一个轻量级的博客框架</li>
<li>使用轻量级“标记语言”<a href="http://en.wikipedia.org/wiki/Markdown" target="_blank" rel="external">Markdown</a>书写博文</li>
</ul>
</blockquote>
<p>本文是博客的第一篇文章,既是试水之作,也是在测试博客的运行状态。博客本身还有许多不完善的地方,将在今后陆续改进。</p>
<p>最后,本博客的地址为:<a href="http://www.JetThinking.com" target="_blank" rel="external">www.JetThinking.com</a></p>
</div>
</div>
</article>
<div class="pagination">
<table width='100%'>
<tbody>
<tr>
<td width='120' align='left'>
</td>
<td width='auto' align='center'>
<a href="/archives/">文章归档</a>
</td>
<td width='120' align='right'>
</td>
</tr>
</tbody>
</table>
</div></div></div>
<div class="clearfix"></div>
</div>
<footer id="footer"><div class="inner"><div class="alignleft">
<p>
© 2014 usafchn
</p>
<p>
<a href = "http://www.JetThinking.com">www.JetThinking.com</a>
</p>
</div>
<div class="clearfix"></div></div></footer>
<script type="text/javascript">
</script>
</body>
</html>