|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.util.collect.CollectionUtil
public class CollectionUtil
| Constructor Summary | |
|---|---|
CollectionUtil()
Deprecated. |
|
| Method Summary | ||
|---|---|---|
static
|
filter(Iterable<T> iterable,
Predicate<T> predicate)
Deprecated. since 2.12.3. Use Iterables.filter(java.lang.Iterable, com.google.common.base.Predicate) instead. |
|
static
|
filter(Iterator<T> iterator,
Predicate<T> predicate)
Deprecated. since 2.12.3. Use Iterators.filter(java.util.Iterator, com.google.common.base.Predicate) instead. |
|
static
|
foreach(Iterable<T> iterable,
Consumer<T> sink)
Deprecated. |
|
static
|
foreach(Iterator<T> iterator,
Consumer<T> sink)
Deprecated. |
|
static
|
sort(Collection<T> collection,
Comparator<T> comparator)
Deprecated. |
|
static
|
toList(Iterable<T> iterable)
Deprecated. since 2.12.3. Use ImmutableList.copyOf(Iterable) instead. |
|
static
|
toList(Iterator<T> iterator)
Deprecated. since 2.12.3. Use ImmutableList.copyOf(Iterator) instead. |
|
static
|
transform(Iterable<T> iterable,
Function<T,R> transformer)
Deprecated. since 2.12.3. Use Iterables.transform(Iterable, com.google.common.base.Function) instead. |
|
static
|
transform(Iterator<T> iterator,
Function<T,R> transformer)
Deprecated. since 2.12.3. Use Lists.transform(java.util.List, com.google.common.base.Function) instead. |
|
static
|
transformIterator(Iterator<T> iterator,
Function<T,R> transformer)
Deprecated. since 2.12.3. Use Iterators.transform(java.util.Iterator, com.google.common.base.Function) instead. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionUtil()
| Method Detail |
|---|
public static <T> void foreach(Iterator<T> iterator,
Consumer<T> sink)
public static <T> void foreach(Iterable<T> iterable,
Consumer<T> sink)
@Deprecated public static <T> List<T> toList(Iterable<T> iterable)
ImmutableList.copyOf(Iterable) instead.
@Deprecated public static <T> List<T> toList(Iterator<T> iterator)
ImmutableList.copyOf(Iterator) instead.
@Deprecated
public static <T,R> List<R> transform(Iterator<T> iterator,
Function<T,R> transformer)
Lists.transform(java.util.List, com.google.common.base.Function) instead.
@Deprecated
public static <T,R> List<R> transform(Iterable<T> iterable,
Function<T,R> transformer)
Iterables.transform(Iterable, com.google.common.base.Function) instead.
@Deprecated
public static <T,R> Iterator<R> transformIterator(Iterator<T> iterator,
Function<T,R> transformer)
Iterators.transform(java.util.Iterator, com.google.common.base.Function) instead.
@Deprecated
public static <T> Iterator<T> filter(Iterator<T> iterator,
Predicate<T> predicate)
Iterators.filter(java.util.Iterator, com.google.common.base.Predicate) instead.
Iterator.
public static <T> Iterable<T> filter(Iterable<T> iterable,
Predicate<T> predicate)
Iterables.filter(java.lang.Iterable, com.google.common.base.Predicate) instead.
Iterator.
public static <T> List<T> sort(Collection<T> collection,
Comparator<T> comparator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||