パッケージ org.springframework.ui
クラス ConcurrentModel
- 実装されたすべてのインターフェース:
SerializableSE
、ConcurrentMapSE<StringSE,
、ObjectSE> MapSE<StringSE,
、ObjectSE> Model
- 既知の直属サブクラス
BindingAwareConcurrentModel
同時シナリオで使用するための
ConcurrentHashMap
SE に基づく Model
インターフェースの実装。Spring WebFlux により、通常 Model
インターフェースの宣言を介してハンドラーメソッドに公開されます。通常、ユーザーコード内で作成する必要はありません。必要に応じて、ハンドラーメソッドは、事前に決定されたモデルに対して通常の java.util.Map
、おそらく java.util.ConcurrentMap
を返すことができます。
- 導入:
- 5.0
- 作成者:
- Rossen Stoyanchev
- 関連事項:
ネストされたクラスのサマリー
クラス java.util.concurrent.ConcurrentHashMapSE から継承されたネストクラス / インターフェース
ConcurrentHashMap.KeySetViewSE<KSE extends ObjectSE,
VSE extends ObjectSE> クラス java.util.AbstractMapSE から継承されたネストクラス / インターフェース
AbstractMap.SimpleEntrySE<KSE extends ObjectSE,
VSE extends ObjectSE>, AbstractMap.SimpleImmutableEntrySE<KSE extends ObjectSE, VSE extends ObjectSE> コンストラクターのサマリー
コンストラクターコンストラクター説明新しい空のConcurrentModel
を作成します。ConcurrentModel
(ObjectSE attributeValue) 指定された属性を含む新しいConcurrentModel
を作成します。ConcurrentModel
(StringSE attributeName, ObjectSE attributeValue) 指定された名前で指定された属性を含む新しいConcurrentModel
を構築します。方法の概要
修飾子と型メソッド説明addAllAttributes
(CollectionSE<?> attributeValues) 各要素の属性名の生成を使用して、提供されたCollection
のすべての属性をこのMap
にコピーします。addAllAttributes
(MapSE<StringSE, ?> attributes) 指定されたMap
のすべての属性をこのMap
にコピーします。addAttribute
(ObjectSE attributeValue) generated name
を使用して、このMap
に提供された属性を追加します。addAttribute
(StringSE attributeName, ObjectSE attributeValue) 指定された名前に指定された属性を追加します。asMap()
モデル属性の現在のセットをマップとして返します。boolean
containsAttribute
(StringSE attributeName) このモデルには、指定された名前の属性が含まれているか判定します。getAttribute
(StringSE attributeName) 指定された名前の属性値があれば、それを返します。mergeAttributes
(MapSE<StringSE, ?> attributes) 指定されたMap
のすべての属性をこのMap
にコピーします。同じ名前の既存のオブジェクトが優先されます(つまりvoid
クラス java.util.concurrent.ConcurrentHashMapSE から継承されたメソッド
clear, computeSE, computeIfAbsentSE, computeIfPresentSE, containsSE, containsKeySE, containsValueSE, elements, entrySet, equalsSE, forEachSE, forEachSE, forEachSE, forEachEntrySE, forEachEntrySE, forEachKeySE, forEachKeySE, forEachValueSE, forEachValueSE, getSE, getOrDefaultSE, hashCode, isEmpty, keys, keySet, keySetSE, mappingCount, mergeSE, newKeySet, newKeySetSE, putIfAbsentSE, reduceSE, reduceEntriesSE, reduceEntriesSE, reduceEntriesToDoubleSE, reduceEntriesToIntSE, reduceEntriesToLongSE, reduceKeysSE, reduceKeysSE, reduceKeysToDoubleSE, reduceKeysToIntSE, reduceKeysToLongSE, reduceToDoubleSE, reduceToIntSE, reduceToLongSE, reduceValuesSE, reduceValuesSE, reduceValuesToDoubleSE, reduceValuesToIntSE, reduceValuesToLongSE, removeSE, removeSE, replaceSE, replaceSE, replaceAllSE, searchSE, searchEntriesSE, searchKeysSE, searchValuesSE, size, toString, values
クラス java.util.AbstractMapSE から継承されたメソッド
clone
コンストラクターの詳細
ConcurrentModel
public ConcurrentModel()新しい空のConcurrentModel
を作成します。ConcurrentModel
指定された名前で指定された属性を含む新しいConcurrentModel
を構築します。ConcurrentModel
指定された属性を含む新しいConcurrentModel
を作成します。属性名生成を使用して、指定されたモデルオブジェクトのキーを生成します。
- 関連事項:
メソッドの詳細
put
putAll
addAttribute
指定された名前に指定された属性を追加します。- 次で指定:
- インターフェース
Model
のaddAttribute
- パラメーター:
attributeName
- モデル属性の名前 (非null
)attributeValue
- モデル属性値 (null
の場合は無視され、既存のエントリがあれば削除されます)
addAttribute
generated name
を使用して、このMap
に提供された属性を追加します。メモ: 真の規則名を正しく判別できないため、このメソッドを使用する場合、空の
Collections
SE はモデルに追加されません。ビューコードは、JSTL タグによってすでに行われているように、空のコレクションではなくnull
をチェックする必要があります。- 次で指定:
- インターフェース
Model
のaddAttribute
- パラメーター:
attributeValue
- モデル属性値 (非null
)
addAllAttributes
各要素の属性名の生成を使用して、提供されたCollection
のすべての属性をこのMap
にコピーします。- 次で指定:
- インターフェース
Model
のaddAllAttributes
- 関連事項:
addAllAttributes
指定されたMap
のすべての属性をこのMap
にコピーします。- 次で指定:
- インターフェース
Model
のaddAllAttributes
- 関連事項:
mergeAttributes
指定されたMap
のすべての属性をこのMap
にコピーします。同じ名前の既存のオブジェクトが優先されます(つまり、置き換えられません)。- 次で指定:
- インターフェース
Model
のmergeAttributes
containsAttribute
このモデルには、指定された名前の属性が含まれているか判定します。- 次で指定:
- インターフェース
Model
のcontainsAttribute
- パラメーター:
attributeName
- モデル属性の名前 (非null
)- 戻り値:
- このモデルに対応する属性が含まれているかどうか
getAttribute
インターフェースからコピーされた説明:Model
指定された名前の属性値があれば、それを返します。- 次で指定:
- インターフェース
Model
のgetAttribute
- パラメーター:
attributeName
- モデル属性の名前 (非null
)- 戻り値:
- 対応する属性値、または存在しない場合は
null
asMap
インターフェースからコピーされた説明:Model
モデル属性の現在のセットをマップとして返します。