org.zodiac.fastorm.rdb.events.ContextKeyValue Maven / Gradle / Ivy
The newest version!
package org.zodiac.fastorm.rdb.events;
public interface ContextKeyValue {
String getKey();
T getValue();
static ContextKeyValue of(String key, T value) {
return new ContextKeyValue() {
@Override
public String getKey() {
return key;
}
@Override
public T getValue() {
return value;
}
};
}
static ContextKeyValue of(ContextKey> key, T value) {
return of(key.getKey(), value);
}
}