List<Boolean> list=new ArrayList<Boolean>(Arrays.asList(new Boolean[10])); Collections.fill(list, Boolean.TRUE);
@NonNull @Override public List<Object> getPreloadItems(int position) { ArrayList<Object> result = new ArrayList<>(1); Collections.fill(result, new Object()); return result; }
@Override public void clearParameters() throws SQLException { Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
@Override public void clearParameters() throws SQLException { Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
@SuppressWarnings("try") private synchronized void closeMergeReaders(MergePolicy.OneMerge merge, boolean suppressExceptions) throws IOException { final boolean drop = suppressExceptions == false; try (Closeable finalizer = merge::mergeFinished) { IOUtils.applyToAll(merge.readers, sr -> { final ReadersAndUpdates rld = getPooledInstance(sr.getOriginalSegmentInfo(), false); // We still hold a ref so it should not have been removed: assert rld != null; if (drop) { rld.dropChanges(); } else { rld.dropMergingUpdates(); } rld.release(sr); release(rld); if (drop) { readerPool.drop(rld.info); } }); } finally { Collections.fill(merge.readers, null); } }
Collections.fill(definedVersions, null); Task task = stack.pop();
public PhoenixPreparedStatement(PhoenixConnection connection, String query) throws SQLException { super(connection); this.query = query; this.statement = parseStatement(query); this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
public PhoenixPreparedStatement(PhoenixConnection connection, PhoenixStatementParser parser) throws SQLException, IOException { super(connection); this.statement = parser.nextStatement(new ExecutableNodeFactory()); if (this.statement == null) { throw new EOFException(); } this.query = null; // TODO: add toString on SQLStatement this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
public PhoenixPreparedStatement(PhoenixConnection connection, String query) throws SQLException { super(connection); this.query = query; this.statement = parseStatement(query); this.parameterCount = statement.getBindCount(); this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
public PhoenixPreparedStatement(PhoenixConnection connection, PhoenixStatementParser parser) throws SQLException, IOException { super(connection); this.statement = parser.nextStatement(new ExecutableNodeFactory()); if (this.statement == null) { throw new EOFException(); } this.query = null; // TODO: add toString on SQLStatement this.parameterCount = statement.getBindCount(); this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
public void changeValues(int x){ int length = arrayList.size(); Collections.fill(arrayList, Boolean.TRUE); for(int a = 0; a < length; a += x){ arrayList.set(a, Boolean.FALSE); } System.out.print(arrayList); }
private void reset() { isLooseMatch = false; Collections.fill(localVarMatches, null); for (int i = 0; i < paramNodeMatches.size(); i++) { this.paramNodeMatches.set(i, null); } }
public static void main(String[] args) { List<StringAddress> list = new ArrayList<>( Collections.nCopies(4, new StringAddress("Hello"))); System.out.println(list); Collections.fill(list, new StringAddress("World!")); System.out.println(list); } }
// apparently this is broken. Whoops for me! java.util.Collections.fill(list,new Integer(0)); // this is better Integer[] data = new Integer[60]; Arrays.fill(data,new Integer(0)); List<Integer> list = Arrays.asList(data);
public final boolean setAll(final Object _v) { if (_v instanceof Boolean) { Collections.fill(list_, _v); fireObjectChanged(); return true; } return false; }
@Override public void setChildren(Vector<NgramNode> newChildren) { if (parent == null) { Collections.fill(children, null); for (NgramNode child : newChildren) children.set(child.getId(), child); } else children = new Vector<NgramNode>(newChildren); childCount = newChildren.size(); }
public PhoenixPreparedStatement(PhoenixConnection connection, String query) throws SQLException { super(connection); this.query = query; this.statement = parseStatement(query); this.parameterCount = statement.getBindCount(); this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
public PhoenixPreparedStatement(PhoenixConnection connection, String query) throws SQLException { super(connection); this.query = query; this.statement = parseStatement(query); this.parameterCount = statement.getBindCount(); this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
public PhoenixPreparedStatement(PhoenixConnection connection, PhoenixStatementParser parser) throws SQLException, IOException { super(connection); this.statement = parser.nextStatement(new ExecutableNodeFactory()); if (this.statement == null) { throw new EOFException(); } this.query = null; // TODO: add toString on SQLStatement this.parameterCount = statement.getBindCount(); this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }
public PhoenixPreparedStatement(PhoenixConnection connection, PhoenixStatementParser parser) throws SQLException, IOException { super(connection); this.statement = parser.nextStatement(new ExecutableNodeFactory()); if (this.statement == null) { throw new EOFException(); } this.query = null; // TODO: add toString on SQLStatement this.parameterCount = statement.getBindCount(); this.parameters = Arrays.asList(new Object[statement.getBindCount()]); Collections.fill(parameters, BindManager.UNBOUND_PARAMETER); }