MCPcopy
hub / github.com/brianfrankcooper/YCSB / equals

Method equals

core/src/main/java/site/ycsb/Status.java:59–86  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

57 }
58
59 @Override
60 public boolean equals(Object obj) {
61 if (this == obj) {
62 return true;
63 }
64 if (obj == null) {
65 return false;
66 }
67 if (getClass() != obj.getClass()) {
68 return false;
69 }
70 Status other = (Status) obj;
71 if (description == null) {
72 if (other.description != null) {
73 return false;
74 }
75 } else if (!description.equals(other.description)) {
76 return false;
77 }
78 if (name == null) {
79 if (other.name != null) {
80 return false;
81 }
82 } else if (!name.equals(other.name)) {
83 return false;
84 }
85 return true;
86 }
87
88 /**
89 * Is {@code this} a passing state for the operation: {@link Status#OK} or {@link Status#BATCHED_OK}.

Callers 15

readMethod · 0.95
insertAndReadTestMethod · 0.95
singleScanReadTestMethod · 0.95
updateTestMethod · 0.95
updateMethod · 0.95
runMethod · 0.95
initMethod · 0.45
updateUrlMethod · 0.45
initMethod · 0.45
initMethod · 0.45
setTableMethod · 0.45

Calls

no outgoing calls

Tested by 8

insertAndReadTestMethod · 0.76
singleScanReadTestMethod · 0.76
updateTestMethod · 0.76
insertWithValidationMethod · 0.36
dumpStdoutMethod · 0.36
processRequestsMethod · 0.36
testUpdateMethod · 0.36