NeutronSubnetIpAllocationPool implements Serializable { static long convert(String inputString) { long ans = 0; if (inputString != null) { String[] parts = inputString.split("\\."); for (String part : parts) { ans <<= BYTE_LENGTH; ans |= Integer.parseInt(part); } } return ans; } NeutronSubnetIpAllocationPool();  NeutronSubnetIpAllocationPool(String lowAddress, String highAddress); String getPoolStart(); void setPoolStart(String poolStart); String getPoolEnd(); void setPoolEnd(String poolEnd); boolean contains(String inputString); boolean containsV6(String inputString); static String join(String[] strings, String separator); List<NeutronSubnetIpAllocationPool> splitPool(String ipAddress); @Override String toString(); List<NeutronSubnetIpAllocationPool> splitPoolV6(String ipAddress);  }
@Test public void convertTest() { Assert.assertEquals("Convert Test 1: null Argument failed", 0, NeutronSubnetIpAllocationPool.convert(null)); Assert.assertEquals("Convert Test 2: convert of 32.20.10.0 failed", 538184192, NeutronSubnetIpAllocationPool.convert("32.20.10.0")); Assert.assertEquals("Convert Test 3: convert of 192.168.2.140 failed", 3232236172L, NeutronSubnetIpAllocationPool.convert("192.168.2.140")); }