private static Boolean isValidIPV4(final String ipAddress){
  boolean status=false;
  if (StringUtils.isNotEmpty(ipAddress)) {
    status=InetAddressUtils.isIPv4Address(ipAddress);
  }
  return status;
}

private static Boolean isValidIPV4 ( final String ipAddress ) { boolean status = false ; if ( StringUtils . isNotEmpty ( ipAddress ) ) { status = InetAddressUtils . isIPv4Address ( ipAddress ) ; } return status ; }
validates ipv4 address using regex for the given ipaddress
