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