MCPcopy Create free account
hub / github.com/JetBrains/skija / equals

Method equals

shared/java/impl/Native.java:22–39  ·  view source on GitHub ↗
(Object other)

Source from the content-addressed store, hash-verified

20 }
21
22 @Override
23 public boolean equals(Object other) {
24 try {
25 if (this == other)
26 return true;
27 if (null == other)
28 return false;
29 if (!getClass().isInstance(other))
30 return false;
31 Native nOther = (Native) other;
32 if (_ptr == nOther._ptr)
33 return true;
34 return _nativeEquals(nOther);
35 } finally {
36 Reference.reachabilityFence(this);
37 Reference.reachabilityFence(other);
38 }
39 }
40
41 @ApiStatus.Internal
42 public boolean _nativeEquals(Native other) {

Callers 15

assertEqualsMethod · 0.45
assertNotEqualsMethod · 0.45
assertArrayEqualsMethod · 0.45
executeMethod · 0.45
parseOneMethod · 0.45
PlatformEnum · 0.45
staticLoadMethod · 0.45
_extractMethod · 0.45
LogClass · 0.45
drawMethod · 0.45

Calls 1

_nativeEqualsMethod · 0.95

Tested by 4

assertEqualsMethod · 0.36
assertNotEqualsMethod · 0.36
assertArrayEqualsMethod · 0.36
executeMethod · 0.36