添付ファイルの追加

ログイン済のユーザのみが添付ファイルをアップロード出来ます。

添付ファイル一覧

Kind Attachment Name Size Version Date Modified Author Change note
png
custocompany1.png 3.3 kB 1 25-6-2011 03:28 ytp
png
custocompany2.png 4.1 kB 1 25-6-2011 03:28 ytp
png
name.png 8.2 kB 4 31-12-2011 21:46 ytp
png
name2.png 8.3 kB 3 31-12-2011 21:43 ytp
png
supplyer.png 3.4 kB 1 25-6-2011 03:28 ytp

This page (revision-22) was last changed on 25-7-2014 20:50 by ytp

This page was created on 23-5-2011 01:03 by ytp

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 202 changed one line
これは、JavaのArrayListクラスのように、汎用的なデータ構造を持つクラスを継承せずに以上の形で利用した場合、その汎用的なクラスの扱いを共通化したい場合です。
これは、JavaのArrayListクラスのように汎用的なデータ構造を持つクラスを継承せずに委譲の形で利用する時、その汎用的なクラスに対する特定の扱いを共通化したい場合です。ytpの経験ではこの使い方はあまり多くないため以下の事例もそれほど実用的ではありません。\\
%%prettify
{{{
public class Someclass {
private String name = "XX";
private List<Integer> someList = new ArrayList<Integer>();
:
:
public String firstMethod() {
// リストの初期化
clearList();
何かの処理;
:
}
public String secondMethod() {
// リストの初期化
clearList();
別の何かの処理;
:
}
/** リストの要素をゼロで置き換える **/
private void clearList() {
for (Integer el : someList) {
el = new Integer(0);
}
}
}}}
/%
Version Date Modified Size Author Changes ... Change note
22 25-7-2014 20:50 7.789 kB ytp to previous
21 31-12-2011 21:42 7.791 kB ytp to previous | to last
« This page (revision-22) was last changed on 25-7-2014 20:50 by ytp