@Test void createLocal() { assertEquals("bootstrap", Style.createLocal("bootstrap.min.css").getName()); assertEquals("yeti", Style.createLocal("bootstrap-yeti.min.css").getName()); assertEquals("mystyle", Style.createLocal("mystyle.css").getName()); assertEquals("my-style", Style.createLocal("my-style.css").getName()); }
public static Style createLocal(String location) { String name = location.replaceFirst("bootstrap-", ""); name = name.replaceFirst(".min", ""); name = name.replaceFirst(".css", ""); return new AutoValue_Style(name, false, location); }
Style { public static Style createLocal(String location) { String name = location.replaceFirst("bootstrap-", ""); name = name.replaceFirst(".min", ""); name = name.replaceFirst(".css", ""); return new AutoValue_Style(name, false, location); } }
Style { public static Style createLocal(String location) { String name = location.replaceFirst("bootstrap-", ""); name = name.replaceFirst(".min", ""); name = name.replaceFirst(".css", ""); return new AutoValue_Style(name, false, location); }  }
Style { public static Style createLocal(String location) { String name = location.replaceFirst("bootstrap-", ""); name = name.replaceFirst(".min", ""); name = name.replaceFirst(".css", ""); return new AutoValue_Style(name, false, location); }  abstract String getName(); abstract boolean isRemote(); abstract String getLocation(); static Style createLocal(String location); }
Style { public static Style createLocal(String location) { String name = location.replaceFirst("bootstrap-", ""); name = name.replaceFirst(".min", ""); name = name.replaceFirst(".css", ""); return new AutoValue_Style(name, false, location); }  abstract String getName(); abstract boolean isRemote(); abstract String getLocation(); static Style createLocal(String location);  }