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 <K,V> Map.Entry<K,V> |
first(Map<K,V> map) |
static <K,V> K |
firstKey(Map<K,V> map) |
static <K,V> V |
firstValue(Map<K,V> map) |
static <T> List<T> |
join(List<T> a,
List<T> b) |
static <T> T |
last(List<T> list) |
@SafeVarargs public static <T> Set<T> asSet(T... elements)
@SafeVarargs public static <T> Set<T> asSet(Collection<T> collection, T... elements)
@SafeVarargs 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 <K,V> V firstValue(Map<K,V> map)
public static <K,V> K firstKey(Map<K,V> map)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.