io.github.nichetoolkit.rest.RestValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-toolkit-core Show documentation
Show all versions of rest-toolkit-core Show documentation
Rest toolkit core project for Spring Boot
package io.github.nichetoolkit.rest;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* RiceValue
* @author Cyan ([email protected])
* @version v1.0.0
*/
public interface RestValue extends RestKey {
V getValue();
default Map entry() {
return Collections.singletonMap(this.getKey(), this.getValue());
}
static , K, V> List lists(Class clazz) {
return Arrays.asList(clazz.getEnumConstants());
}
static , K, V> List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy