public class Collections extends Object
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
containsAny(Iterable<T> haystack,
Iterable<T> needles) |
static <T> Collection<? extends T> |
filteredCopyOf(Collection<? extends T> source,
Collection<? extends T> filter) |
static <T> T |
firstElementOf(Collection<? extends T> items) |
static boolean |
isEmpty(Collection<?> c) |
static <T> Set<T> |
setOf(Collection<T> c) |
public static <T> Set<T> setOf(Collection<T> c)
public static boolean isEmpty(Collection<?> c)
public static <T> Collection<? extends T> filteredCopyOf(Collection<? extends T> source, Collection<? extends T> filter)
public static <T> T firstElementOf(Collection<? extends T> items)
Copyright © 2015. All rights reserved.