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

io.github.imsejin.common.constant.interfaces.KeyValue Maven / Gradle / Ivy

package io.github.imsejin.common.constant.interfaces;

/**
 * This is for that enum provides {@code key()} and {@code value()}.
 */
public interface KeyValue {

    /**
     * Gets name of the enum.
     * 
* It replaces {@link Enum#name()} with itself. * * @return enum's name */ String key(); /** * Gets value of the enum. *
* This should be implemented to return the first parameter * of enum's constructor. * * @return the first parameter of enum's constructor */ String value(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy