Package org.mapstruct.ap.internal.util
Class Collections
- java.lang.Object
-
- org.mapstruct.ap.internal.util.Collections
-
public class Collections extends Object
Provides utility methods around collections.- Author:
- Gunnar Morling
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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>
KfirstKey(Map<K,V> map)
static <K,V>
VfirstValue(Map<K,V> map)
static <T> List<T>
join(List<T> a, List<T> b)
static <T> T
last(List<T> list)
-
-
-
Method Detail
-
asSet
@SafeVarargs public static <T> Set<T> asSet(T... elements)
-
asSet
@SafeVarargs public static <T> Set<T> asSet(Collection<T> collection, T... elements)
-
asSet
@SafeVarargs public static <T> Set<T> asSet(Collection<T> collection, Collection<T>... elements)
-
first
public static <T> T first(Collection<T> collection)
-
last
public static <T> T last(List<T> list)
-
firstValue
public static <K,V> V firstValue(Map<K,V> map)
-
firstKey
public static <K,V> K firstKey(Map<K,V> map)
-
-