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

dev.struchkov.godfather.main.domain.ContextKey Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package dev.struchkov.godfather.main.domain;

public interface ContextKey {

    String getValue();

    Class getType();

    static  ContextKey of(String value, Class type) {
        return new ContextKey<>() {
            @Override
            public String getValue() {
                return value;
            }

            @Override
            public Class getType() {
                return type;
            }
        };
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy