@Test public void testIsSupportedVersion () { assertEquals(false, TmxMapParser.isSupportedVersion("0")); assertEquals(true, TmxMapParser.isSupportedVersion("1.0")); assertEquals(true, TmxMapParser.isSupportedVersion("1.1")); assertEquals(true, TmxMapParser.isSupportedVersion("1.2")); assertEquals(false, TmxMapParser.isSupportedVersion("1.3")); assertEquals(false, TmxMapParser.isSupportedVersion("10.0")); }
protected static boolean isSupportedVersion (String version) { Objects.requireNonNull(version); for (String supportedVersion : SUPPORTED_TMX_VERSIONS) { if (supportedVersion.equals(version)) { return true; } } return false; }
TmxMapParser { protected static boolean isSupportedVersion (String version) { Objects.requireNonNull(version); for (String supportedVersion : SUPPORTED_TMX_VERSIONS) { if (supportedVersion.equals(version)) { return true; } } return false; } }
TmxMapParser { protected static boolean isSupportedVersion (String version) { Objects.requireNonNull(version); for (String supportedVersion : SUPPORTED_TMX_VERSIONS) { if (supportedVersion.equals(version)) { return true; } } return false; } protected  TmxMapParser(); }
TmxMapParser { protected static boolean isSupportedVersion (String version) { Objects.requireNonNull(version); for (String supportedVersion : SUPPORTED_TMX_VERSIONS) { if (supportedVersion.equals(version)) { return true; } } return false; } protected  TmxMapParser(); static TiledMap parse(File tmxFile); }
TmxMapParser { protected static boolean isSupportedVersion (String version) { Objects.requireNonNull(version); for (String supportedVersion : SUPPORTED_TMX_VERSIONS) { if (supportedVersion.equals(version)) { return true; } } return false; } protected  TmxMapParser(); static TiledMap parse(File tmxFile);  }