Jcat
寵辱不驚,閑看庭前花開花落~~
BlogJava
首頁
新隨筆
新文章
聯系
聚合
管理
posts - 173,comments - 67,trackbacks - 0
<
2006年8月
>
日
一
二
三
四
五
六
30
31
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
1
2
3
4
5
6
7
8
9
迷路ing
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(13)
給我留言
查看公開留言
查看私人留言
隨筆分類
(171)
Business Intelligence(11)
Database(49)
English(19)
Financing(4)
Java(23)
Linux(18)
Non-technique(12)
VBA(6)
貓樣年華(29)
相冊
BIT
隨筆配圖
Doc_Database
oracleadvice
PostgreSQL SQL Syntax and Use
SQL語言教學
Doc_Java
jsref
jstl
many egs
struts tags
XML 指南
xmlhttprequest
Favorites
愛書
Java牛人們
cpedia
oldjavaman
江南白衣,帥!
車東
透明思考
My friends
Momi is my pet, miao~~
哥哥
好貓一只^_^
小二
有個性的少平
謝謝,師兄走好!
風風
瘋風風
Oracle牛人們
oracledba
oracle空間
Search Engine
luncen in martrix
北京大學計算語言學研究所
搜索
積分與排名
積分 - 116090
排名 - 506
最新評論
1.?Soila Lilly
評論內容較長,點擊標題查看
--pauldavidsung@gmail.com
2.?re: Wide Screen Resolution: Dell700m+FC3+1280x800
最近將Dell 700m安裝成紅帽5,寬屏的解決不需要第1、2步驟。 封存多時的小七又煥發活力。
--Jcat
3.?re: 圣斗士十二宮總結
我日!
--sure_dandan
4.?re: 基金
在銀行買基金相當于代銷,在基金公司買基金相當于直銷,一般情況下,費率如下:銀行柜臺 > 網銀 > 基金公司網站
--Jcat
5.?re: synnex : 從2點面到7點
呵呵 我正準備去這公司 去呆兩年
--劉毅
Read source code is a good way to learn anything!
Experience
To know how dose List.remove(Object) work, I do many test sample. But I still feel not very realizing. Finally, I?took a look at?souce code, and then I knew everything!
public
?
boolean
?remove(Object?o)?
{
????
if
?(o?
==
?
null
)?
{
????????????
for
?(
int
?index?
=
?
0
;?index?
<
?size;?index
++
)
????????
if
?(elementData[index]?
==
?
null
)?
{
????????????fastRemove(index);
????????????
return
?
true
;
????????}
????}
?
else
?
{
????????
for
?(
int
?index?
=
?
0
;?index?
<
?size;?index
++
)
????????
if
?(o.equals(elementData[index]))?
{
????????????fastRemove(index);
????????????
return
?
true
;
????????}
????????}
????
return
?
false
;
????}
1. List store very object's reference but object's own.
2. remove(Object) will remove the first reference in List which refer to?the object
3. If you want to change an object to a new index:
back up it--> remove it--> re-add it
Experience
I create a class to handle something annotated by Annotations. But it doesn't work. I found out it is returned false by
Class.getMethod().isAnnotationPresent(Todo.class)
. Finally, I got the reason by reading source code.
public
?
enum
?RetentionPolicy?{
????
/**
?????*?Annotations?are?to?be?discarded?by?the?compiler.
?????
*/
????SOURCE,
????
/**
?????*?Annotations?are?to?be?recorded?in?the?class?file?by?the?compiler
?????*?but?need?not?be?retained?by?the?VM?at?run?time.??
This?is?the?default
?????*?
behavior
.
?????
*/
????CLASS,
????
/**
?????*?Annotations?are?to?be?recorded?in?the?class?file?by?the?compiler?and
?????*?retained?by?the?VM?at?run?time,?
so?they?may?be?read?reflectively
.
?????*
?????*?
@see
?java.lang.reflect.AnnotatedElement
?????
*/
????RUNTIME
}
posted on 2006-08-03 18:43
Jcat
閱讀(351)
評論(0)
編輯
收藏
所屬分類:
Java
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
Groovy 修飾符
Groovy JDBC
Groovy Closure “操作”也成了參數
Groovy Closure
Hello Grails
java foundation
environment variable for java, groovy, ant and etc.
Struts
Apache vs Tomcat
input data from cmd
Copyright ©2025 Jcat Powered By
博客園
模板提供:
滬江博客
主站蜘蛛池模板:
亚洲av日韩aⅴ无码色老头
|
亚洲JIZZJIZZ中国少妇中文
|
亚洲视频中文字幕
|
中文字幕成人免费高清在线视频
|
亚洲VA综合VA国产产VA中
|
国产精品亚洲а∨无码播放麻豆
|
久久国产免费观看精品3
|
亚洲人成网址在线观看
|
8x成人永久免费视频
|
亚洲国产精品久久久久久
|
88av免费观看
|
亚洲中文字幕无码一去台湾
|
成年轻人网站色免费看
|
337p日本欧洲亚洲大胆人人
|
亚洲精品国产综合久久一线
|
baoyu116.永久免费视频
|
99亚洲精品高清一二区
|
在线观看免费污视频
|
特黄特色的大片观看免费视频
|
亚洲区日韩区无码区
|
国色精品va在线观看免费视频
|
99久久亚洲综合精品成人网
|
成年人视频在线观看免费
|
美女视频黄a视频全免费网站一区 美女视频黄a视频全免费网站色
|
成人片黄网站色大片免费观看cn
|
亚洲精品无码Av人在线观看国产
|
一级毛片全部免费播放
|
国产精品亚洲自在线播放页码
|
啦啦啦手机完整免费高清观看
|
国产偷国产偷亚洲高清在线
|
亚洲热妇无码AV在线播放
|
黄色永久免费网站
|
免费在线观看亚洲
|
久久久久久亚洲AV无码专区
|
日韩免费一级毛片
|
a级毛片免费播放
|
亚洲中文字幕无码爆乳
|
综合久久久久久中文字幕亚洲国产国产综合一区首
|
亚洲第一极品精品无码久久
|
成人免费福利电影
|
3344在线看片免费
|