org.guiceex.provider
クラス MapProvider<T extends Map>
java.lang.Object
org.guiceex.provider.CollectionProviderSupport<T>
org.guiceex.provider.MapProvider<T>
- すべての実装されたインタフェース:
- Provider
public class MapProvider<T extends Map>
- extends CollectionProviderSupport<T>
- implements Provider
Map型のコレクションのProvider。
- 作成者:
- matu◆AliceLAklI
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapProvider
public MapProvider(List<Entry> entries,
Class type)
initCollection
protected T initCollection(T collection)
- デフォルトの
Injectorを使用してkeyとvalue
を取得し登録する。
- 定義:
- クラス
CollectionProviderSupport<T extends Map> 内の initCollection
fromList
public static <T extends Map> Provider<T> fromList(List<Entry> entries,
Class<T> type)
MapProviderインスタンスを作成する。
- 型パラメータ:
T - - パラメータ:
entries - Mapへ登録する要素。type - 作成するMapの具象型。
- 戻り値:
Copyright © 2007. All Rights Reserved.