public class Collections extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
asSet(Collection<T> collection,
Collection<T>... elements) |
static <T> Set<T> |
asSet(Collection<T> collection,
T... elements) |
static <T> Set<T> |
asSet(T... elements) |
static <T> T |
first(Collection<T> collection) |
static <E> boolean |
hasNonNullElements(Iterable<E> elements) |
static <T> List<T> |
join(List<T> a,
List<T> b) |
static <T> List<T> |
newArrayList(T... elements) |
public static <T> Set<T> asSet(T... elements)
public static <T> List<T> newArrayList(T... elements)
public static <T> Set<T> asSet(Collection<T> collection, T... elements)
public static <T> Set<T> asSet(Collection<T> collection, Collection<T>... elements)
public static <T> T first(Collection<T> collection)
public static <E> boolean hasNonNullElements(Iterable<E> elements)
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.