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> T |
last(List<T> list) |
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 <T> T last(List<T> list)
public static <E> boolean hasNonNullElements(Iterable<E> elements)
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.