@Test public void testEquals() { Assert.assertTrue(underTest.prefixMatch(new VersionString("2.4.0.0-770"), new VersionString("2.4.0.0-770"), 1)); Assert.assertTrue(underTest.prefixMatch(new VersionString("2.4.0.0-770"), new VersionString("2.4.0.0-770"), 2)); Assert.assertTrue(underTest.prefixMatch(new VersionString("2.4.0.0-770"), new VersionString("2.4.0.0-770"), 3)); Assert.assertTrue(underTest.prefixMatch(new VersionString("2.4.0.0-770"), new VersionString("2.4.0.0-770"), 4)); Assert.assertTrue(underTest.prefixMatch(new VersionString("2.4.0.0-770"), new VersionString("2.4.0.0-770"), MAJOR)); Assert.assertTrue(underTest.prefixMatch(new VersionString("2.4.0.0-770"), new VersionString("2.4.0.0-770"), MINOR)); Assert.assertTrue(underTest.prefixMatch(new VersionString("2.4.0.0-770"), new VersionString("2.4.0.0-770"), MAINTENANCE)); }
public boolean prefixMatch(Versioned o1, Versioned o2, PrefixMatchLength matchLength) { return prefixMatch(o1, o2, matchLength.getMatchLength()); }
VersionPrefix { public boolean prefixMatch(Versioned o1, Versioned o2, PrefixMatchLength matchLength) { return prefixMatch(o1, o2, matchLength.getMatchLength()); } }
VersionPrefix { public boolean prefixMatch(Versioned o1, Versioned o2, PrefixMatchLength matchLength) { return prefixMatch(o1, o2, matchLength.getMatchLength()); }  }
VersionPrefix { public boolean prefixMatch(Versioned o1, Versioned o2, PrefixMatchLength matchLength) { return prefixMatch(o1, o2, matchLength.getMatchLength()); }  boolean prefixMatch(Versioned o1, Versioned o2, PrefixMatchLength matchLength); boolean prefixMatch(Versioned o1, Versioned o2, int digits); }
VersionPrefix { public boolean prefixMatch(Versioned o1, Versioned o2, PrefixMatchLength matchLength) { return prefixMatch(o1, o2, matchLength.getMatchLength()); }  boolean prefixMatch(Versioned o1, Versioned o2, PrefixMatchLength matchLength); boolean prefixMatch(Versioned o1, Versioned o2, int digits);  }