Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
←
Previous Change
Wiki History
Next Change
→
Changes between
Version 5
and
Version 6
of
Generic
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
Timestamp:
Jul 10, 2008, 4:38:09 PM (
17 years
ago)
Author:
waue
Comment:
--
Legend:
Unmodified
Added
Removed
Modified
Generic
v5
v6
1
[[PageLayout]]
1
[[PageOutline]]
2
= 泛型 =
2
3
當您定義類別時,發現到好幾個類別的邏輯其實都相同,就只是當中所涉及的型態不一樣時,使用複製、貼上、取代的功能來撰寫程式只是讓您增加不必要的檔案管理困擾。
3
4
…
…
228
229
如果您已經定義了一個泛型類別,想要用這個類別來於另一個泛型類別中宣告成員的話要如何作?舉個實例,假設您已經定義了下面的類別:
229
230
230
*
GenericFoo.java
231
*
!
GenericFoo.java
231
232
{{{
232
233
#!java