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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy