mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
make builder name unambiguous for AnnotationBuilder
This commit is contained in:
parent
7074c99a67
commit
e952d1ecba
@ -83,7 +83,7 @@ public interface Annotation {
|
|||||||
*/
|
*/
|
||||||
Map<String, String> getDetails();
|
Map<String, String> getDetails();
|
||||||
|
|
||||||
static BuilderFacets.WantsSession newBuilder() {
|
static AnnotationBuilderFacets.WantsSession newBuilder() {
|
||||||
return new AnnotationBuilder();
|
return new AnnotationBuilder();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import java.time.ZoneId;
|
|||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
|
||||||
public class AnnotationBuilder implements BuilderFacets.All {
|
public class AnnotationBuilder implements AnnotationBuilderFacets.All {
|
||||||
private String session;
|
private String session;
|
||||||
private long start;
|
private long start;
|
||||||
private long end;
|
private long end;
|
||||||
@ -75,7 +75,7 @@ public class AnnotationBuilder implements BuilderFacets.All {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BuilderFacets.WantsMoreDetailsOrBuild detail(String name, String value) {
|
public AnnotationBuilderFacets.WantsMoreDetailsOrBuild detail(String name, String value) {
|
||||||
this.details.put(name, value);
|
this.details.put(name, value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ public class AnnotationBuilder implements BuilderFacets.All {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BuilderFacets.WantsInterval session(String session) {
|
public AnnotationBuilderFacets.WantsInterval session(String session) {
|
||||||
this.session = session;
|
this.session = session;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
package io.nosqlbench.nb.api.annotations;
|
package io.nosqlbench.nb.api.annotations;
|
||||||
|
|
||||||
public interface BuilderFacets {
|
public interface AnnotationBuilderFacets {
|
||||||
|
|
||||||
interface All extends
|
interface All extends
|
||||||
WantsSession, WantsInterval, WantsLayer, WantsLabels, WantsMoreDetailsOrBuild, WantsMoreLabelsOrDetails {
|
WantsSession, WantsInterval, WantsLayer, WantsLabels, WantsMoreDetailsOrBuild, WantsMoreLabelsOrDetails {
|
Loading…
Reference in New Issue
Block a user