VersionComparator implements Comparator<String> { public static boolean isSnapshot(String version) { return BrooklynVersionSyntax.isSnapshot(version); }  static VersionComparator getInstance(); static boolean isSnapshot(String version); @Override int compare(String v1, String v2); static final VersionComparator INSTANCE; }
@Test public void testIsSnapshot() { Assert.assertTrue(VersionComparator.isSnapshot("0.10.0-SNAPSHOT")); Assert.assertTrue(VersionComparator.isSnapshot("0.10.0.snapshot")); Assert.assertFalse(VersionComparator.isSnapshot("0.10.0")); }