(Version other)
| 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); |