com.google.android.collect.Lists Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firebase-java-sdk Show documentation
Show all versions of firebase-java-sdk Show documentation
The Firebase Java SDK is a pure java port of the Firebase Android SDK to run in clientside java environments such as the desktop.
The newest version!
package com.google.android.collect;
import java.util.ArrayList;
import java.util.Collections;
public class Lists {
public Lists() {
}
public static ArrayList newArrayList() {
return new ArrayList();
}
public static ArrayList newArrayList(E... elements) {
int capacity = elements.length * 110 / 100 + 5;
ArrayList list = new ArrayList(capacity);
Collections.addAll(list, elements);
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy