checks whether the parameter is a valid compressed ipv6 address concode_field_sep Pattern IPV6_HEX_COMPRESSED_PATTERN concode_elem_sep char COLON_CHAR concode_elem_sep Pattern IPV4_MAPPED_IPV6_PATTERN concode_elem_sep String IPV4_BASIC_PATTERN_STRING concode_elem_sep Pattern IPV4_PATTERN concode_elem_sep int MAX_COLON_COUNT concode_elem_sep Pattern IPV6_STD_PATTERN concode_field_sep boolean isIPv6Address concode_elem_sep boolean isIPv4Address concode_elem_sep boolean isIPv4MappedIPv64Address concode_elem_sep boolean isIPv6StdAddress
boolean function ( final String arg0 ) { int loc0 = 0 ; for ( int loc1 = 0 ; loc1 < arg0 . length ( ) ; loc1 ++ ) { if ( arg0 . charAt ( loc1 ) == COLON_CHAR ) { loc0 ++ ; } } return loc0 <= MAX_COLON_COUNT && IPV6_HEX_COMPRESSED_PATTERN . matcher ( arg0 ) . matches ( ) ; }