public AbstractCachingConfigService(ProjectService projectService, XmlService xmlService) { Assert.noNulls(projectService, xmlService); this.projectService = projectService; this.xmlService = xmlService; }
public MainContext(Class<?> mainClass, String[] args) { Assert.noNulls(mainClass); this.mainClass = mainClass; this.args = args; }
public LogSqlListener(LoggerLevel level, LogSqlMode mode, boolean flatten) { Assert.noNulls(level, mode); this.level = level; this.mode = mode; this.flatten = flatten; }
public HttpWaitExecutable(HttpService service, HttpContext context, boolean skip) { Assert.noNulls(service, context); this.service = service; this.context = context; this.skip = skip; }
public AwsAuth(AWSCredentials credentials, KeyPair keyPair) { Assert.noNulls(credentials, keyPair); this.credentials = credentials; this.keyPair = keyPair; }
public Comments(boolean ignore, List<String> tokens) { Assert.noNulls(tokens); this.ignore = ignore; this.tokens = ImmutableList.copyOf(tokens); }
public static <T> List<T> newArrayList(List<T> list, boolean immutable) { Assert.noNulls(list); if (immutable) { return Collections.unmodifiableList(new ArrayList<T>(list)); } else { return new ArrayList<T>(list); } }
public static final String toCSV(List<Integer> integers) { Assert.noNulls(integers); StringBuilder sb = new StringBuilder(); for (int i = 0; i < integers.size(); i++) { if (i != 0) { sb.append(","); } sb.append(integers.get(i)); } return sb.toString(); }
public WriteLines(WriteRequest request, List<String> lines) { Assert.noNulls(request, lines); this.request = request; this.lines = ListUtils.newImmutableArrayList(lines); }
public static <T> List<T> newArrayList(T element) { Assert.noNulls(element); List<T> list = newArrayList(); list.add(element); return list; }
public JdbcMetaData(Product product, Driver driver, String url, String username) { Assert.noNulls(product, driver); Assert.noBlanks(url); this.product = product; this.driver = driver; this.url = url; this.username = username; }
public InstanceStateCondition(EC2Service service, String instanceId, InstanceStateName targetState) { Assert.noNulls(service, targetState); Assert.noBlanks(instanceId); this.instanceId = instanceId; this.service = service; this.targetState = targetState; }
public WriteProperties(WriteRequest request, Properties properties) { Assert.noNulls(request, properties); this.request = request; this.properties = PropertyUtils.toImmutable(properties); }
public Logger(String name, List<AppenderRef> references, Level level, boolean additivity) { Assert.noBlanks(name); Assert.noNulls(references, level); this.name = name; this.references = new ArrayList<AppenderRef>(references); this.level = level; this.additivity = additivity; }
public DefaultSqlReader(Delimiter delimiter, LineSeparator lineSeparator, boolean trim, Comments comments) { Assert.noNulls(delimiter, lineSeparator, comments); this.delimiter = delimiter; this.lineSeparator = lineSeparator; this.trim = trim; this.comments = comments; this.lineSeparatorLength = this.lineSeparator.getValue().length(); this.delimiterLength = delimiter.getValue().length(); }
public CommandResult(byte[] command, int exitValue, long start) { this.stop = System.currentTimeMillis(); Assert.isTrue(stop >= start); Assert.noNulls(command); Assert.noNegatives(start); this.command = command; this.exitValue = exitValue; this.start = start; this.elapsed = stop - start; }
public DatabaseProcessContext(DatabaseVendor vendor, JdbcConnections connections, String encoding, String schema) { Assert.noNulls(vendor, connections); Assert.noBlanks(encoding, schema); this.vendor = vendor.getCode(); this.connections = connections; this.encoding = encoding; this.schema = schema; }
@Override public <T> T getObject(File file, Class<T> type) { Assert.exists(file); Assert.noNulls(type); return getObject(LocationUtils.getCanonicalPath(file), type); }
public LogTableContext(String title, List<String> columns, List<Object[]> rows, LoggerLevel level, Logger logger, boolean leftAlign) { Assert.noNulls(columns, rows, logger, level); Assert.noBlanks(title); this.title = title; this.columns = ListUtils.newImmutableArrayList(columns); this.rows = ListUtils.newImmutableArrayList(rows); this.level = level; this.logger = logger; this.leftAlign = leftAlign; }
public Deployable build() { Assert.noBlanks(local, remote); Assert.noNulls(permissions); if (required) { Assert.isTrue(exists, "[" + local + "] does not exist"); } return new Deployable(this); }