matches

fun matches(hostname: String): Boolean(source)

Returns true if the given hostname matches this pattern.