Exemplo n.º 1
0
  public SampleBuilderSpec<P> blanksMap(Map<Integer, BlankBuilderSpec<?>> blanksMap) {
    verifyMutable();

    if (this.blanksMap == null) {
      this.blanksMap = new TreeMap<Integer, BlankBuilderSpec<?>>();
    }
    if (blanksMap != null) {
      for (Map.Entry<Integer, BlankBuilderSpec<?>> e : blanksMap.entrySet()) {
        CollectionUtils.putItem(this.blanksMap, e.getKey(), e.getValue());
      }
    }
    return this;
  }
Exemplo n.º 2
0
  public SampleBuilderSpec<P> keywordCounts(Map<String, Integer> keywordCounts) {
    verifyMutable();

    if (this.keywordCounts == null) {
      this.keywordCounts = new HashMap<String, Integer>();
    }
    if (keywordCounts != null) {
      for (Map.Entry<String, Integer> e : keywordCounts.entrySet()) {
        CollectionUtils.putItem(this.keywordCounts, e.getKey(), e.getValue());
      }
    }
    return this;
  }
Exemplo n.º 3
0
  public SampleBuilderSpec<P> blanks2blanks(
      Map<BlankBuilderSpec<?>, BlankBuilderSpec<?>> blanks2blanks) {
    verifyMutable();

    if (this.blanks2blanks == null) {
      this.blanks2blanks = new HashMap<BlankBuilderSpec<?>, BlankBuilderSpec<?>>();
    }
    if (blanks2blanks != null) {
      for (Map.Entry<BlankBuilderSpec<?>, BlankBuilderSpec<?>> e : blanks2blanks.entrySet()) {
        CollectionUtils.putItem(this.blanks2blanks, e.getKey(), e.getValue());
      }
    }
    return this;
  }
Exemplo n.º 4
0
 public BlankBuilderSpec<Blanks2blanks$builder<P1>> value$asBlank() {
   BlankBuilderSpec<Blanks2blanks$builder<P1>> result =
       new BlankBuilderSpec<Blanks2blanks$builder<P1>>(Blanks2blanks$builder.this);
   CollectionUtils.putItem(SampleBuilderSpec.this.blanks2blanks, key, result);
   return result;
 }
Exemplo n.º 5
0
 public Blanks2blanks$builder<P1> value(BlankBuilderSpec<?> value) {
   CollectionUtils.putItem(SampleBuilderSpec.this.blanks2blanks, key, value);
   return Blanks2blanks$builder.this;
 }
Exemplo n.º 6
0
 public KeywordCounts$builder<P1> value(Integer value) {
   CollectionUtils.putItem(SampleBuilderSpec.this.keywordCounts, key, value);
   return KeywordCounts$builder.this;
 }