io.github.nichetoolkit.rest.RestStatus 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;
/**
* RiceStatus
* @author Cyan ([email protected])
* @version v1.0.0
*/
public interface RestStatus {
String name();
Integer getStatus();
String getMessage();
default Map entry() {
return Collections.singletonMap(this.getStatus(),this.getMessage());
}
static List lists(Class clazz) {
return Arrays.asList(clazz.getEnumConstants());
}
static List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy