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