クラス ExpressionEvalMap
java.lang.ObjectSE
java.util.AbstractMapSE<StringSE,ObjectSE>
org.springframework.integration.expression.ExpressionEvalMap
Map<String, Object> をラップする不変の AbstractMapSE 実装。ここで、値は StringSE または Expression のインスタンスである必要があり、基になる original マップから提供された key の expression を評価します。
このクラスのインスタンスでは、変更操作(put(String, Object)、remove(Object) など)は許可されていません。ミューテーションは、サポートされている場合、基になるマップで実行できます。
from(Map) メソッドを介してこのクラスをインスタンス化するには、ExpressionEvalMap.ExpressionEvalMapBuilder を使用する必要があります。
ExpressionEvalMap evalMap = ExpressionEvalMap
.from(expressions)
.usingCallback(new EvaluationCallback() {
Object evaluate(Expression expression) {
// return some expression evaluation
}
})
.build();
スレッドセーフは、元の基になるマップによって異なります。このクラスのオブジェクトは直列化できません。
- 導入:
- 3.0
- 作成者:
- Artem Bilan, Gary Russell
ネストされたクラスの概要
ネストされたクラス修飾子と型クラス説明static classstatic interfaceこのインターフェースの実装は、ExpressionEvalMapの「オンデマンドget(Object)ロジック」を構築するために提供できます。static final classExpressionEvalMapをインスタンス化するビルダークラス。static interfacestatic interfaceクラス java.util.AbstractMapSE から継承されたネストクラス / インターフェース
AbstractMap.SimpleEntrySE<KSE extends ObjectSE,VSE extends ObjectSE>, AbstractMap.SimpleImmutableEntrySE<KSE extends ObjectSE, VSE extends ObjectSE> フィールド概要
フィールド方法の概要
クラス java.util.AbstractMapSE から継承されたメソッド
cloneインターフェース java.util.MapSE から継承されたメソッド
computeSE, computeIfAbsentSE, computeIfPresentSE, forEachSE, getOrDefaultSE, mergeSE, putIfAbsentSE, removeSE, replaceSE, replaceSE, replaceAllSE
フィールドの詳細
SIMPLE_CALLBACK
方法の詳細
get
entrySet
values
containsKey
- 次で指定:
- インターフェース
MapSE<StringSE,内のObjectSE> containsKeySE - オーバーライド:
- クラス
AbstractMapSE<StringSE,のObjectSE> containsKeySE
keySet
isEmpty
public boolean isEmpty()size
public int size()equals
hashCode
public int hashCode()toString
- オーバーライド:
- クラス
AbstractMapSE<StringSE,のObjectSE> toString
put
putAll
clear
public void clear()containsValue
- 次で指定:
- インターフェース
MapSE<StringSE,内のObjectSE> containsValueSE - オーバーライド:
- クラス
AbstractMapSE<StringSE,のObjectSE> containsValueSE
remove
from