IPRange(String networkAddress, int netmask) { List<int> octets = getOctetsOfIpAddress(networkAddress); this.address = octetsToInteger(octets); this.netmask = netmask; }