public static List<String> checkInvalidAddress(LinkedHashMap<String,String> map1,LinkedHashMap<String,String> map2){
  List<String> invalidIpv4=validateIPv4Addresses(map1);
  List<String> invalidIpv6=validateIPv6Address(map2);
  List<String> invalid=new ArrayList<String>();
  invalid.addAll(invalidIpv4);
  invalid.addAll(invalidIpv6);
  if (!invalid.isEmpty()) {
    log.warn("There are invalid addresses entered: {}/{}",invalid.size(),invalid);
  }
  return invalid;
}

public static List < String > checkInvalidAddress ( LinkedHashMap < String , String > map1 , LinkedHashMap < String , String > map2 ) { List < String > invalidIpv4 = validateIPv4Addresses ( map1 ) ; List < String > invalidIpv6 = validateIPv6Address ( map2 ) ; List < String > invalid = new ArrayList < String > ( ) ; invalid . addAll ( invalidIpv4 ) ; invalid . addAll ( invalidIpv6 ) ; if ( ! invalid . isEmpty ( ) ) { log . warn ( "There are invalid addresses entered: {}/{}" , invalid . size ( ) , invalid ) ; } return invalid ; }
validate ipv4 and ipv6 address format
