MCPcopy Create free account
hub / github.com/M66B/FairEmail / isTld

Method isTld

app/src/main/java/eu/faircode/email/UriHelper.java:142–147  ·  view source on GitHub ↗
(Context context, String host)

Source from the content-addressed store, hash-verified

140 }
141
142 static boolean isTld(Context context, String host) {
143 if (host == null)
144 return false;
145 String tld = getTld(context, host);
146 return (tld != null && tld.equals(host));
147 }
148
149 static boolean hasTld(Context context, String host) {
150 return (host != null && getTld(context, host) != null);

Callers 1

fromEmailMethod · 0.95

Calls 2

getTldMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected