MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / equalTo

Method equalTo

java/src/org/openqa/selenium/docker/Version.java:41–51  ·  view source on GitHub ↗
(Version other)

Source from the content-addressed store, hash-verified

39 }
40
41 public boolean equalTo(Version other) {
42 int max = Math.max(segments.length, other.segments.length);
43
44 for (int i = 0; i < max; i++) {
45 if (compare(segments, other.segments, i) != 0) {
46 return false;
47 }
48 }
49
50 return true;
51 }
52
53 public boolean isLessThan(Version other) {
54 int max = Math.max(segments.length, other.segments.length);

Callers 6

isLessThanMethod · 0.95
isGreaterThanMethod · 0.95
equalsMethod · 0.95
getDockerProtocolMethod · 0.95
shouldMatchMethod · 0.45

Calls 1

compareMethod · 0.95

Tested by 2

shouldMatchMethod · 0.36