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 <T> T |
get(Iterable<T> haystack,
T needle) |
static <T> int |
indexOf(Iterable<? extends T> haystack,
T needle) |
static boolean |
isEmpty(Collection<?> c) |
static <T> T |
lastElementOf(Collection<? extends T> items) |
static <T> T |
lastElementOf(List<? extends T> items) |
static <T> Collection<? extends T> |
maskedCopyOf(Collection<? extends T> source,
Collection<? extends T> mask) |
static <T> Set<T> |
setOf(Collection<T> c) |
static <T> Set<T> |
setOf(T... c) |
public static <T> Set<T> setOf(T... c)
public static <T> Set<T> setOf(Collection<T> c)
public static boolean isEmpty(Collection<?> c)
public static <T> T get(Iterable<T> haystack, T needle)
public static <T> int indexOf(Iterable<? extends T> haystack, T needle)
public static <T> Collection<? extends T> filteredCopyOf(Collection<? extends T> source, Collection<? extends T> filter)
public static <T> Collection<? extends T> maskedCopyOf(Collection<? extends T> source, Collection<? extends T> mask)
public static <T> T firstElementOf(Collection<? extends T> items)
public static <T> T lastElementOf(List<? extends T> items)
public static <T> T lastElementOf(Collection<? extends T> items)
Copyright © 2014. All rights reserved.