public class SimpleKeyGenerator extends ObjectSE implements KeyGenerator
SimpleKey
を返します。 このクラスによって生成されたキーとの衝突は発生しません。返された SimpleKey
オブジェクトは ConcurrentMapCache
で安全に使用できますが、すべての Cache
実装に適しているとは限りません。
SimpleKey
, CachingConfigurer
コンストラクターと説明 |
---|
SimpleKeyGenerator() |
修飾子と型 | メソッドと説明 |
---|---|
ObjectSE | generate(ObjectSE target, MethodSE method, ObjectSE... params) 指定されたメソッドとそのパラメーターのキーを生成します。 |
static ObjectSE | generateKey(ObjectSE... params) 指定されたパラメーターに基づいてキーを生成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ObjectSE generate(ObjectSE target, MethodSE method, ObjectSE... params)
KeyGenerator
KeyGenerator
の generate
target
- ターゲットインスタンス method
- 呼び出されるメソッド params
- メソッドパラメーター (var-args を展開した場合)