/** * Construct an {@link AbstractAssemblyBuilder}. */ public AbstractAssemblyBuilder() { characteristics = new LinkedList<>(); optionsByType = OptionsByType.empty(); }
/** * Construct an {@link AbstractAssemblyBuilder}. */ public AbstractAssemblyBuilder() { characteristics = new LinkedList<>(); optionsByType = OptionsByType.empty(); }
/** * Constructor for {@link AbstractAssemblyResource}. */ protected AbstractAssemblyResource() { this.launchDefinitions = new ArrayList<>(); // assume no infrastructure (ie: local) this.infrastructure = null; this.commonOptionsByType = OptionsByType.empty(); this.creationOptionsByType = OptionsByType.empty(); this.closingOptionsByType = OptionsByType.empty(); this.assembly = null; // create the assembly builder now so sub-classes may enhance it this.assemblyBuilder = createBuilder(); }
/** * Constructor for {@link AbstractAssemblyResource}. */ protected AbstractAssemblyResource() { this.launchDefinitions = new ArrayList<>(); // assume no infrastructure (ie: local) this.infrastructure = null; this.commonOptionsByType = OptionsByType.empty(); this.creationOptionsByType = OptionsByType.empty(); this.closingOptionsByType = OptionsByType.empty(); this.assembly = null; // create the assembly builder now so sub-classes may enhance it this.assemblyBuilder = createBuilder(); }
/** * Constructs a {@link Table} given a collection of {@link Row}s. * * @param rows the {@link Row}s in the {@link Table} */ public Table(Row... rows) { this.rows = new ArrayList<>(); if (rows != null) { for (Row row : rows) { this.rows.add(row); } } this.optionsByType = OptionsByType.empty(); }
/** * Constructs a {@link Row} consisting of zero or more {@link Cell}s. * * @param cells the {@link Cell}s across the {@link Row} */ public Row(Cell... cells) { this.cells = new ArrayList<>(); if (cells != null) { for (Cell cell : cells) { this.cells.add(cell); } } this.optionsByType = OptionsByType.empty(); }
/** * Constructs a {@link Table} given a collection of {@link Row}s. * * @param rows the {@link Row}s in the {@link Table} */ public Table(Row... rows) { this.rows = new ArrayList<>(); if (rows != null) { for (Row row : rows) { this.rows.add(row); } } this.optionsByType = OptionsByType.empty(); }
/** * Constructs a {@link Row} consisting of zero or more {@link Cell}s. * * @param cells the {@link Cell}s across the {@link Row} */ public Row(Cell... cells) { this.cells = new ArrayList<>(); if (cells != null) { for (Cell cell : cells) { this.cells.add(cell); } } this.optionsByType = OptionsByType.empty(); }
/** * Constructs a {@link Caching}. * * @param enabled is caching enabled? * @param options the {@link Option}s for {@link Caching} */ private Caching(boolean enabled, Option... options) { this.enabled = enabled; this.optionsByType = options == null || options.length == 0 ? OptionsByType.empty() : OptionsByType.of(options); }
/** * Constructs a {@link Caching}. * * @param enabled is caching enabled? * @param options the {@link Option}s for {@link Caching} */ private Caching(boolean enabled, Option... options) { this.enabled = enabled; this.optionsByType = options == null || options.length == 0 ? OptionsByType.empty() : OptionsByType.of(options); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); for (String value : resolve(OptionsByType.empty())) { if (builder.length() > 0) { builder.append(" "); } builder.append(value); } return builder.toString(); } }
@Override public String toString() { StringBuilder builder = new StringBuilder(); for (String value : resolve(OptionsByType.empty())) { if (builder.length() > 0) { builder.append(" "); } builder.append(value); } return builder.toString(); } }
/** * Constructs a {@link Cell} given an array of separate lines. * <p> * Should the lines themselves contain new-lines, they are split in to separate lines. * * @param lines the lines of content for the {@link Cell} */ public Cell(String... lines) { this.lines = new ArrayList<>(); this.optionsByType = OptionsByType.empty(); if (lines != null) { for (String content : lines) { if (content == null) { this.lines.add(null); } else { for (String line : content.split("\\n\\r|\\n")) { this.lines.add(line); } } } } }
/** * Constructs a {@link Cell} given an array of separate lines. * <p> * Should the lines themselves contain new-lines, they are split in to separate lines. * * @param lines the lines of content for the {@link Cell} */ public Cell(String... lines) { this.lines = new ArrayList<>(); this.optionsByType = OptionsByType.empty(); if (lines != null) { for (String content : lines) { if (content == null) { this.lines.add(null); } else { for (String line : content.split("\\n\\r|\\n")) { this.lines.add(line); } } } } }
OptionsByType profiles = OptionsByType.empty();
OptionsByType profiles = OptionsByType.empty();
optionsByType = OptionsByType.empty();
optionsByType = OptionsByType.empty();
OptionsByType optionsByType = OptionsByType.empty();
? OptionsByType.empty() : OptionsByType.of(platform.getOptions()); Table deploymentTable = new Table();