Package org.jclouds.profitbricks.util
Class Preconditions
- java.lang.Object
-
- org.jclouds.profitbricks.util.Preconditions
-
public final class Preconditions extends Object
Static convenience methods for validating various ProfitBricks domain preconditions
-
-
Constructor Summary
Constructors Constructor Description Preconditions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkCores(Integer cores)
static void
checkIcmp(Integer icmpType, Integer icmpCode, Firewall.Protocol protocol)
static void
checkInvalidChars(String name)
static void
checkIp(String ip)
static void
checkIps(List<String> ips)
static void
checkLanId(Integer id)
static void
checkMacAddress(String macAddress)
static void
checkPassword(String password)
static void
checkPortRange(Integer portRangeStart, Integer portRangeEnd, Firewall.Protocol protocol)
static void
checkRam(Integer ram, Boolean isRamHotPlug)
static void
checkSize(Float size)
-
-
-
Method Detail
-
checkInvalidChars
public static void checkInvalidChars(String name)
-
checkIp
public static void checkIp(String ip)
-
checkPortRange
public static void checkPortRange(Integer portRangeStart, Integer portRangeEnd, Firewall.Protocol protocol)
-
checkMacAddress
public static void checkMacAddress(String macAddress)
-
checkIcmp
public static void checkIcmp(Integer icmpType, Integer icmpCode, Firewall.Protocol protocol)
-
checkLanId
public static void checkLanId(Integer id)
-
checkCores
public static void checkCores(Integer cores)
-
checkSize
public static void checkSize(Float size)
-
checkPassword
public static void checkPassword(String password)
-
-