/*explicit*/ ClassOne() : ClassOne(0, 0) { // ctor delegation std::cout << "delegated ClassOne(V)V\n"; } /*explicit*/ ClassOne( int x, int y); // overloaded constructor
/^[ \.,]+(?=)|(?<=)[ \.,]+$/
/^([ \.,]+)(?=)|(?<=)\1$/
/^(?<name>[ \.,]+)(?=)|(?<=)\name$/
def objective = "---aaa---bbb-c--" objective.replaceAll(/[-]+/, '.').replaceAll( /^[\.]+(?=)|(?<=)[\.]+$/, '')
def objective = "----.,,,aaa-,,,, ...--bbb-,.. c-- --" println( objective.replaceAll(/[- \.,]+/, '.').replaceAll( /^[ \.,]+(?=)|(?<=)[ \.,]+$/, '') )
println( objective.toString().replace(/-/, '.') )
aaa...bbb.c
(/[-]+/, '.')
println( objective.replace(/(.*?)-+(.+?)-(.*)/, '$1.$2.$3') )
def objective = "aaa---bbb-c" objective.replace(/(.*?)-+(.+?)-(.*)/, '.')
objective.replace(/(.*?)-+(.+?)-(.*)/, '$1.$2.$3')
plugins { `java-library` `maven-publish` } group = "com.mod" version = "0.0.1" repositories { this.maven { this.url = uri("path/to/your/repo") } } dependencies { runtimeOnly(project(":provider-mod")) //REM: or //runtimeOnly("com.mod:provider-mod:0.0.1") } publishing { this.publications { this.create<MavenPublication>("mv-service-mod") { this.from(components["java"]) } } this.repositories { this.maven { this.name = "repo" this.setUrl("path/to/your/repo") } } }
repositories { //REM: we can use this, if it is an external module or binary or library maven { url = uri("https://com.mod/maven/early-release") } //REM: or ivy { url = uri("https://com.mod/ivy/early-release") } } dependencies { implementation(project(":service-mod")); //REM: or //implementation("com.mod:service-mod:0.0.1") }
java.util.List<servicemod> lsm = ServiceLoader.load(ServiceMod.class) .stream() .map(ServiceLoader.Provider::get) .collect(Collectors.toList()); for(ServiceMod sm : lsm) System.out.println(sm.getStat());