MCPcopy Create free account
hub / github.com/FongMi/TV / isValid

Method isValid

catvod/src/main/java/com/github/catvod/bean/Proxy.java:70–72  ·  view source on GitHub ↗
(Uri uri)

Source from the content-addressed store, hash-verified

68 }
69
70 private boolean isValid(Uri uri) {
71 return uri.getScheme() != null && uri.getHost() != null && uri.getPort() > 0;
72 }
73
74 private java.net.Proxy create(Uri uri) {
75 InetSocketAddress address = InetSocketAddress.createUnresolved(uri.getHost(), uri.getPort());

Callers

nothing calls this directly

Calls 2

getHostMethod · 0.45
getPortMethod · 0.45

Tested by

no test coverage detected