1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 | package Torello.Browser;
import static Torello.Java.C.BCYAN;
import static Torello.Java.C.RESET;
import java.util.Objects;
class PCHelper
{
static String toString(PageConn pc)
{
final String B = BCYAN, R = RESET;
return "PageConn\n" +
"{\n" +
" " + B + "id: " + R + ": " + pc.id + '\n' +
" " + B + "type: " + R + ": " + pc.type + '\n' +
" " + B + "title: " + R + ": " + pc.title + '\n' +
" " + B + "url: " + R + ": " + pc.url + '\n' +
" " + B + "description: " + R + ": " + pc.description + '\n' +
" " + B + "webSocketDebuggerUrl: " + R + ": " + pc.webSocketDebuggerUrl + '\n' +
" " + B + "devtoolsFrontendUrl: " + R + ": " + pc.devtoolsFrontendUrl + '\n' +
" " + B + "faviconUrl: " + R + ": " + pc.faviconUrl + '\n' +
"}";
}
static boolean equals(PageConn a, Object o)
{
if (a == o) return true;
if (!(o instanceof PageConn)) return false;
final PageConn b = (PageConn) o;
return Objects.equals(a.id, b.id)
&& Objects.equals(a.type, b.type)
&& Objects.equals(a.title, b.title)
&& Objects.equals(a.url, b.url)
&& Objects.equals(a.description, b.description)
&& Objects.equals(a.webSocketDebuggerUrl, b.webSocketDebuggerUrl)
&& Objects.equals(a.devtoolsFrontendUrl, b.devtoolsFrontendUrl)
&& Objects.equals(a.faviconUrl, b.faviconUrl);
}
static int hashCode(PageConn pc)
{
return Objects.hash(
pc.id, pc.type, pc.title, pc.url, pc.description,
pc.webSocketDebuggerUrl, pc.devtoolsFrontendUrl, pc.faviconUrl
);
}
static PageConn clone(PageConn pc)
{
return new PageConn(
pc.id,
pc.type,
pc.title,
pc.url,
pc.description,
pc.webSocketDebuggerUrl,
pc.devtoolsFrontendUrl,
pc.faviconUrl
);
}
}
|