All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.influxdb.querybuilder.clauses.NestedClause Maven / Gradle / Ivy

There is a newer version: 2.24
Show newest version
package org.influxdb.querybuilder.clauses;

import static org.influxdb.querybuilder.Appender.joinAndAppend;

import java.util.List;

public class NestedClause implements Clause {

  private final List conjunctionClauses;

  public NestedClause(final List conjunctionClauses) {
    this.conjunctionClauses = conjunctionClauses;
  }

  @Override
  public void appendTo(final StringBuilder stringBuilder) {
    stringBuilder.append("(");
    joinAndAppend(stringBuilder, conjunctionClauses);
    stringBuilder.append(")");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy