public class CollectionUtil extends Object
| コンストラクタと説明 |
|---|
CollectionUtil() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static <T,U> Map<T,U> |
asMap(Map.Entry<T,U>... elements) |
static <T,U> Map<T,U> |
asMap(Pair<T,U>... elements) |
static <T,U> List<U> |
collect(Iterable<T> elements,
Transformer<T,U> transformer) |
static <T,U> void |
collect(Iterator<T> iterator,
Collection<U> target,
Transformer<T,U> transformer) |
static <T,U> List<U> |
collect(Iterator<T> iterator,
Transformer<T,U> transformer) |
static <T> Collection<T> |
emptyCollection() |
static <T> boolean |
equalsAsSet(Collection<T> value1,
Collection<T> value2) |
static <T> boolean |
equalsAsSet(Collection<T> value1,
Collection<T> value2,
Class<T> clazz,
String equalsMethodName) |
static <T> boolean |
equalsAsSet(Collection<T> value1,
Collection<T> value2,
Method equalsMethod) |
static <T> Collection<T> |
filter(Iterable<T> collection,
Predicate<T> pred) |
static <T> Stream<T> |
stream(Iterable<T> collection) |
static <T> T[] |
toArray(Collection<T> collection,
Class<T> elementClass) |
static <T> T[] |
toArray(Collection<T> collection,
Class<T> elementClass,
int index,
int count) |
public static <T> boolean equalsAsSet(Collection<T> value1, Collection<T> value2)
public static <T> boolean equalsAsSet(Collection<T> value1, Collection<T> value2, Class<T> clazz, String equalsMethodName) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
public static <T> boolean equalsAsSet(Collection<T> value1, Collection<T> value2, Method equalsMethod) throws IllegalAccessException, InvocationTargetException
public static <T,U> List<U> collect(Iterator<T> iterator, Transformer<T,U> transformer) throws TransformationException
public static <T,U> List<U> collect(Iterable<T> elements, Transformer<T,U> transformer) throws TransformationException
public static <T,U> void collect(Iterator<T> iterator, Collection<U> target, Transformer<T,U> transformer) throws TransformationException
public static <T> T[] toArray(Collection<T> collection, Class<T> elementClass)
public static <T> T[] toArray(Collection<T> collection, Class<T> elementClass, int index, int count)
public static <T> Collection<T> emptyCollection()
public static <T> Collection<T> filter(Iterable<T> collection, Predicate<T> pred)
Copyright © 2016. All rights reserved.