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

Method isLessThan

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

Source from the content-addressed store, hash-verified

51 }
52
53 public boolean isLessThan(Version other) {
54 int max = Math.max(segments.length, other.segments.length);
55
56 for (int i = 0; i < max; i++) {
57 int cmp = compare(segments, other.segments, i);
58 if (cmp < 0) {
59 return true;
60 }
61 if (cmp > 0) {
62 return false;
63 }
64 }
65
66 return !equalTo(other);
67 }
68
69 public boolean isGreaterThan(Version other) {
70 int max = Math.max(segments.length, other.segments.length);

Calls 2

compareMethod · 0.95
equalToMethod · 0.95