com.jelastic.api.system.po.VzVersion Maven / Gradle / Ivy
The newest version!
/*Server class MD5: 7deec5ffb76d73767a67cf07fdc0f6f7*/
package com.jelastic.api.system.po;
import java.util.Arrays;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
*/
public enum VzVersion {
VZ6, VZ7(true), VZ7_UNLIMITED(true);
private boolean isVz7;
VzVersion() {
this.isVz7 = false;
}
VzVersion(boolean isVz7) {
this.isVz7 = isVz7;
}
public boolean isVz7() {
return isVz7;
}
public static VzVersion parse(String value, Boolean isLimited) {
if (isLimited == null) {
isLimited = true;
}
VzVersion vzType = parse(value);
if (vzType == VZ7 && !isLimited) {
return VZ7_UNLIMITED;
}
return vzType;
}
public static VzVersion parse(String value) {
return Arrays.stream(VzVersion.values()).filter(e -> e.name().equalsIgnoreCase(value)).findFirst().orElse(VZ6);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy