
io.github.filipowm.api.VersionTarget Maven / Gradle / Ivy
package io.github.filipowm.api;
import org.springframework.util.StringUtils;
/**
* Interface used by objects which may store
* API versioning scheme and be responsible for API versioning.
*/
public interface VersionTarget {
String getVersion();
void setVersion(String version);
default boolean isVersioned() {
return StringUtils.hasLength(getVersion());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy