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();
|
||||
|
||||
static BuilderFacets.WantsSession newBuilder() {
|
||||
static AnnotationBuilderFacets.WantsSession newBuilder() {
|
||||
return new AnnotationBuilder();
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import java.time.ZoneId;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.TimeZone;
|
||||
|
||||
public class AnnotationBuilder implements BuilderFacets.All {
|
||||
public class AnnotationBuilder implements AnnotationBuilderFacets.All {
|
||||
private String session;
|
||||
private long start;
|
||||
private long end;
|
||||
@ -75,7 +75,7 @@ public class AnnotationBuilder implements BuilderFacets.All {
|
||||
}
|
||||
|
||||
@Override
|
||||
public BuilderFacets.WantsMoreDetailsOrBuild detail(String name, String value) {
|
||||
public AnnotationBuilderFacets.WantsMoreDetailsOrBuild detail(String name, String value) {
|
||||
this.details.put(name, value);
|
||||
return this;
|
||||
}
|
||||
@ -87,7 +87,7 @@ public class AnnotationBuilder implements BuilderFacets.All {
|
||||
}
|
||||
|
||||
@Override
|
||||
public BuilderFacets.WantsInterval session(String session) {
|
||||
public AnnotationBuilderFacets.WantsInterval session(String session) {
|
||||
this.session = session;
|
||||
return this;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
package io.nosqlbench.nb.api.annotations;
|
||||
|
||||
public interface BuilderFacets {
|
||||
public interface AnnotationBuilderFacets {
|
||||
|
||||
interface All extends
|
||||
WantsSession, WantsInterval, WantsLayer, WantsLabels, WantsMoreDetailsOrBuild, WantsMoreLabelsOrDetails {
|
Loading…
Reference in New Issue
Block a user