public CommandLineParameters clone() { CommandLineParameters ret; try { ret = (CommandLineParameters) super.clone(); } catch (CloneNotSupportedException e) { return null; } if (this.routerIds != null) { ret.routerIds = Lists.newArrayList(); ret.routerIds.addAll(this.routerIds); } return ret; }
/** * Creates an {@code ArrayList} instance to hold {@code estimatedSize} * elements, <i>plus</i> an unspecified amount of padding; you almost * certainly mean to call {@link #newArrayListWithCapacity} (see that method * for further advice on usage). * * <p><b>Note:</b> This method will soon be deprecated. Even in the rare case * that you do want some amount of padding, it's best if you choose your * desired amount explicitly. * * @param estimatedSize an estimate of the eventual {@link List#size()} of * the new list * @return a new, empty {@code ArrayList}, sized appropriately to hold the * estimated number of elements * @throws IllegalArgumentException if {@code estimatedSize} is negative */ @GwtCompatible(serializable = true) public static <E> ArrayList<E> newArrayListWithExpectedSize( int estimatedSize) { return new ArrayList<E>(computeArrayListCapacity(estimatedSize)); }
@Override public ImmutableList<Character> subList( int fromIndex, int toIndex) { checkPositionIndexes(fromIndex, toIndex, size()); // for GWT return charactersOf(string.substring(fromIndex, toIndex)); }
@Override public int lastIndexOf(@Nullable Object object) { return (object == null) ? -1 : Lists.lastIndexOfImpl(this, object); }
@Override public int indexOf(@Nullable Object object) { return (object == null) ? -1 : Lists.indexOfImpl(this, object); }
@Override public boolean equals(@Nullable Object obj) { return Lists.equalsImpl(this, obj); }
return cartesianProduct(Arrays.asList(lists));
/** * Creates an {@code ArrayList} instance to hold {@code estimatedSize} * elements, <i>plus</i> an unspecified amount of padding; you almost * certainly mean to call {@link #newArrayListWithCapacity} (see that method * for further advice on usage). * * <p><b>Note:</b> This method will soon be deprecated. Even in the rare case * that you do want some amount of padding, it's best if you choose your * desired amount explicitly. * * @param estimatedSize an estimate of the eventual {@link List#size()} of * the new list * @return a new, empty {@code ArrayList}, sized appropriately to hold the * estimated number of elements * @throws IllegalArgumentException if {@code estimatedSize} is negative */ @GwtCompatible(serializable = true) public static <E> ArrayList<E> newArrayListWithExpectedSize( int estimatedSize) { return new ArrayList<E>(computeArrayListCapacity(estimatedSize)); }
@Override public ImmutableList<Character> subList( int fromIndex, int toIndex) { checkPositionIndexes(fromIndex, toIndex, size()); // for GWT return charactersOf(string.substring(fromIndex, toIndex)); }
@Override public int lastIndexOf(@Nullable Object object) { return (object == null) ? -1 : Lists.lastIndexOfImpl(this, object); }
@Override public int indexOf(@Nullable Object object) { return (object == null) ? -1 : Lists.indexOfImpl(this, object); }
@Override public boolean equals(@Nullable Object obj) { return Lists.equalsImpl(this, obj); }
return cartesianProduct(Arrays.asList(lists));
@Override public void metricsHeartbeat(MetricsHeartbeatPRequest request, StreamObserver<MetricsHeartbeatPResponse> responseObserver) { RpcUtils.call(LOG, (RpcUtils.RpcCallableThrowsIOException<MetricsHeartbeatPResponse>) () -> { List<Metric> metrics = Lists.newArrayList(); for (alluxio.grpc.Metric metric : request.getOptions().getMetricsList()) { Metric parsed = Metric.fromProto(metric); metrics.add(parsed); } mMetricsMaster.clientHeartbeat(request.getClientId(), request.getHostname(), metrics); return MetricsHeartbeatPResponse.getDefaultInstance(); }, "metricsHeartbeat", "request=%s", responseObserver, request); } }
/** * Creates an {@code ArrayList} instance to hold {@code estimatedSize} * elements, <i>plus</i> an unspecified amount of padding; you almost * certainly mean to call {@link #newArrayListWithCapacity} (see that method * for further advice on usage). * * <p><b>Note:</b> This method will soon be deprecated. Even in the rare case * that you do want some amount of padding, it's best if you choose your * desired amount explicitly. * * @param estimatedSize an estimate of the eventual {@link List#size()} of * the new list * @return a new, empty {@code ArrayList}, sized appropriately to hold the * estimated number of elements * @throws IllegalArgumentException if {@code estimatedSize} is negative */ @GwtCompatible(serializable = true) public static <E> ArrayList<E> newArrayListWithExpectedSize( int estimatedSize) { return new ArrayList<E>(computeArrayListCapacity(estimatedSize)); }
@Override public ImmutableList<Character> subList( int fromIndex, int toIndex) { checkPositionIndexes(fromIndex, toIndex, size()); // for GWT return charactersOf(string.substring(fromIndex, toIndex)); }
@Override public int lastIndexOf(@Nullable Object object) { return (object == null) ? -1 : Lists.lastIndexOfImpl(this, object); }
@Override public int indexOf(@Nullable Object object) { return (object == null) ? -1 : Lists.indexOfImpl(this, object); }
@Override public boolean equals(@Nullable Object obj) { return Lists.equalsImpl(this, obj); }
return cartesianProduct(Arrays.asList(lists));