All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
            }
        };
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy