tries to detemine the address type of the given address . concode_field_sep Pattern ipv4Pattern concode_elem_sep Pattern ipv6Pattern concode_elem_sep Pattern ipv6ISATAPPattern concode_elem_sep Pattern ipv6PatternWithPercentScopeID concode_field_sep boolean isAnISATAPIPv6Address
AddressType function ( String arg0 , boolean arg1 ) { if ( ipv4Pattern . matcher ( arg0 ) . matches ( ) ) { return AddressType . IPv4 ; } else if ( ( arg1 ? ipv6PatternWithPercentScopeID : ipv6Pattern ) . matcher ( arg0 ) . matches ( ) ) { return AddressType . IPv6 ; } return AddressType . OTHER ; }