Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3411)

Unified Diff: base/android/java/src/org/chromium/base/CollectionUtil.java

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/android/java/src/org/chromium/base/CollectionUtil.java
diff --git a/base/android/java/src/org/chromium/base/CollectionUtil.java b/base/android/java/src/org/chromium/base/CollectionUtil.java
deleted file mode 100644
index 2672d654cb217f1d7e7b4da3f919d1063186aae1..0000000000000000000000000000000000000000
--- a/base/android/java/src/org/chromium/base/CollectionUtil.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.base;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-
-/**
- * Functions used for easier initialization of Java collections. Inspired by
- * functionality in com.google.common.collect in Guava but cherry-picked to
- * bare-minimum functionality to avoid bloat. (http://crbug.com/272790 provides
- * further details)
- */
-public final class CollectionUtil {
- private CollectionUtil() {}
-
- @SafeVarargs
- public static <E> HashSet<E> newHashSet(E... elements) {
- HashSet<E> set = new HashSet<E>(elements.length);
- Collections.addAll(set, elements);
- return set;
- }
-
- @SafeVarargs
- public static <E> ArrayList<E> newArrayList(E... elements) {
- ArrayList<E> list = new ArrayList<E>(elements.length);
- Collections.addAll(list, elements);
- return list;
- }
-
- @VisibleForTesting
- public static <E> ArrayList<E> newArrayList(Iterable<E> iterable) {
- ArrayList<E> list = new ArrayList<E>();
- for (E element : iterable) {
- list.add(element);
- }
- return list;
- }
-}
« no previous file with comments | « base/android/java/src/org/chromium/base/CalledByNative.java ('k') | base/android/java/src/org/chromium/base/CommandLine.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698