@Test public void testMajorVersionSupport() throws Exception { Version v = new Version("1+"); Assert.assertTrue(v.majorVersionSupport()); Version v1 = new Version("1.2"); Assert.assertFalse(v1.majorVersionSupport()); }
public boolean majorVersionSupport() { return version.endsWith("+"); }
Version { public boolean majorVersionSupport() { return version.endsWith("+"); } }
Version { public boolean majorVersionSupport() { return version.endsWith("+"); } Version(final String version); }
Version { public boolean majorVersionSupport() { return version.endsWith("+"); } Version(final String version); boolean isRange(); String getVersion(); String getStartRange(); String getEndRange(); boolean minorVersionSupport(); boolean majorVersionSupport(); @Override boolean equals(Object o); @Override int hashCode(); }
Version { public boolean majorVersionSupport() { return version.endsWith("+"); } Version(final String version); boolean isRange(); String getVersion(); String getStartRange(); String getEndRange(); boolean minorVersionSupport(); boolean majorVersionSupport(); @Override boolean equals(Object o); @Override int hashCode();  }