MCPcopy Index your code
hub / github.com/OperationT00/T-Code / of

Method of

src/main/java/com/tcode/web/SearchResult.java:11–13  ·  view source on GitHub ↗
(int position, String title, String url, String snippet)

Source from the content-addressed store, hash-verified

9public record SearchResult(int position, String title, String url, String snippet, String source) {
10
11 public static SearchResult of(int position, String title, String url, String snippet) {
12 return new SearchResult(position, safe(title), safe(url), safe(snippet), extractHost(url));
13 }
14
15 private static String safe(String s) {
16 return s == null ? "" : s.trim();

Calls 2

safeMethod · 0.95
extractHostMethod · 0.95