This method sets the builder for this thread of execution.

@param builder The fragment builder
185259
public void setFragmentBuilder(FragmentBuilder builder) {
        FragmentBuilder currentBuilder = builders.get();

        if (currentBuilder == null && builder != null) {
            int currentCount = threadCounter.incrementAndGet();
            int builderCount = builder.incrementThreadCount();
            if (log.isLoggable(Level.FINEST)) {
                log.finest("Associate Thread with FragmentBuilder(2): Total Thread Count = " + currentCount
                        + " : Fragment Thread Count = " + builderCount);
                synchronized (threadNames) {
                    threadNames.add(Thread.currentThread().getName());
                }
            }
        } else if (currentBuilder != null && builder == null) {
            int currentCount = threadCounter.decrementAndGet();
            if (log.isLoggable(Level.FINEST)) {
                log.finest("Disassociate Thread from FragmentBuilder(2): Total Thread Count = " + currentCount);
                synchronized (threadNames) {
                    threadNames.remove(Thread.currentThread().getName());
                }
            }
        } else if (currentBuilder != builder) {
            int oldCount = currentBuilder.decrementThreadCount();
            int newCount = builder.incrementThreadCount();
            if (log.isLoggable(Level.FINEST)) {
                log.finest("WARNING: Overwriting thread's fragment builder: old=[" + currentBuilder
                        + " count=" + oldCount + "] now=[" + builder + " count=" + newCount + "]");
            }
        }

        builders.set(builder);
    }
897642
static void addTagToBuilder(Tag tag, TagMapBuilderImpl builder) {
    builder.put(tag.getKey(), tag.getValue(), tag.getTagMetadata());
  }
1022626
@Nonnull
	public static <T1, T2, R> LBiObjFltFunctionBuilder<T1, T2, R> biObjFltFunction(Consumer<LBiObjFltFunction<T1, T2, R>> consumer) {
		return new LBiObjFltFunctionBuilder(consumer);
	}
459222
public Datatype.Builder setBuilderFactory(BuilderFactory builderFactory) {
    this.builderFactory = Objects.requireNonNull(builderFactory);
    return (Datatype.Builder) this;
  }
677440
@Nonnull
	public static <T> LObjIntDblPredicate<T> objIntDblPredicateFrom(Consumer<LObjIntDblPredicateBuilder<T>> buildingFunction) {
		LObjIntDblPredicateBuilder builder = new LObjIntDblPredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
523819
@Nonnull
	public static LByteToCharFunction byteToCharFunctionFrom(Consumer<LByteToCharFunctionBuilder> buildingFunction) {
		LByteToCharFunctionBuilder builder = new LByteToCharFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
1140043
@Nonnull
	public static <T> LOiToCharFunctionBuilder<T> oiToCharFunction(Consumer<LOiToCharFunction<T>> consumer) {
		return new LOiToCharFunctionBuilder(consumer);
	}
427479
private function remapBuilderColumns(Builder $builder): void {
    if($builder->aggregate === null) {
      if($builder->columns === ['*']) {
        $builder->columns = array_keys($this->to_db);
      }

      if(is_string($builder->columns)) {
        $builder->columns = [$builder->columns];
      }

      $this->remapColumns($builder->columns);
    } else {
      if($builder->aggregate['columns'] == ['*']) {
        return;
      }

      $this->remapColumns($builder->aggregate['columns'], false);
    }
  }
624771
@Nonnull
	public static <T, R> LObjIntBoolFunctionBuilder<T, R> objIntBoolFunction(Consumer<LObjIntBoolFunction<T, R>> consumer) {
		return new LObjIntBoolFunctionBuilder(consumer);
	}
840671
private void configureButtonBarDialogBuilder(
            @NonNull final AbstractButtonBarDialogBuilder builder) {
        if (shouldNegativeButtonBeShown()) {
            builder.setNegativeButton(getNegativeButtonText(), createNegativeButtonListener());
        }

        if (shouldNeutralButtonBeShown()) {
            builder.setNeutralButton(getNeutralButtonText(), createNeutralButtonListener());
        }

        if (shouldPositiveButtonBeShown()) {
            builder.setPositiveButton(getPositiveButtonText(), createPositiveButtonListener());
        }

        builder.stackButtons(shouldStackButtons());
        builder.showButtonBarDivider(shouldButtonBarDividerBeShown());
    }
1373778
public Datatype.Builder setGeneratedBuilder(TypeClass generatedBuilder) {
    this.generatedBuilder = Objects.requireNonNull(generatedBuilder);
    _unsetProperties.remove(Property.GENERATED_BUILDER);
    return (Datatype.Builder) this;
  }
1290560
@Nonnull
	public static Runnable actionFrom(Consumer<RunnableBuilder> buildingFunction) {
		RunnableBuilder builder = new RunnableBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
844486
public void setConsumer(org.apache.kafka.clients.consumer.KafkaConsumer<Object, Object> consumer) {
        this.consumer = consumer;
    }
1310851
private void ensureBuilders() {
    if (this.builders == null) {
      this.builders = new ArrayList<SingleFieldBuilder<MType, BType, IType>>(messages.size());
      for (int i = 0; i < messages.size(); i++) {
        builders.add(null);
      }
    }
  }
924349
@Nonnull
	public static <T1, T2, R> LBiObjCharFunctionBuilder<T1, T2, R> biObjCharFunction(Consumer<LBiObjCharFunction<T1, T2, R>> consumer) {
		return new LBiObjCharFunctionBuilder(consumer);
	}
778961
public Datatype.Builder setNullableBuilderFactory(BuilderFactory builderFactory) {
    if (builderFactory != null) {
      return setBuilderFactory(builderFactory);
    } else {
      return clearBuilderFactory();
    }
  }
679326
public function setBuilder(AssertionBuilder $builder)
    {
        if ( ! is_null($this->builder) and $this->configuration["implicit_validation"]) {
            $this->go();
        }

        $this->builders[] = $builder;
        $this->builder = $builder;
    }