public class Collections
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static <T> boolean |
containsAny(java.lang.Iterable<T> haystack,
java.lang.Iterable<T> needles) |
static <T> java.util.Collection<? extends T> |
filteredCopyOf(java.util.Collection<? extends T> source,
java.util.Collection<? extends T> filter) |
static <T> T |
firstElementOf(java.util.Collection<? extends T> items) |
static boolean |
isEmpty(java.util.Collection<?> c) |
static <T> java.util.Set<T> |
setOf(java.util.Collection<T> c) |
public static <T> java.util.Set<T> setOf(java.util.Collection<T> c)
public static boolean isEmpty(java.util.Collection<?> c)
public static <T> boolean containsAny(java.lang.Iterable<T> haystack, java.lang.Iterable<T> needles)
public static <T> java.util.Collection<? extends T> filteredCopyOf(java.util.Collection<? extends T> source, java.util.Collection<? extends T> filter)
public static <T> T firstElementOf(java.util.Collection<? extends T> items)