com.atlassian.plugin.util.collect
Class CollectionUtil

java.lang.Object
  extended by com.atlassian.plugin.util.collect.CollectionUtil

Deprecated. since 2.12.3. Use Google Guava instead.

public class CollectionUtil
extends java.lang.Object


Constructor Summary
CollectionUtil()
          Deprecated.  
 
Method Summary
static
<T> java.lang.Iterable<T>
filter(java.lang.Iterable<T> iterable, Predicate<T> predicate)
          Deprecated. since 2.12.3. Use Iterables.filter(java.lang.Iterable, com.google.common.base.Predicate) instead.
static
<T> java.util.Iterator<T>
filter(java.util.Iterator<T> iterator, Predicate<T> predicate)
          Deprecated. since 2.12.3. Use Iterators.filter(java.util.Iterator, com.google.common.base.Predicate) instead.
static
<T> void
foreach(java.lang.Iterable<T> iterable, Consumer<T> sink)
          Deprecated.  
static
<T> void
foreach(java.util.Iterator<T> iterator, Consumer<T> sink)
          Deprecated.  
static
<T> java.util.List<T>
sort(java.util.Collection<T> collection, java.util.Comparator<T> comparator)
          Deprecated.  
static
<T> java.util.List<T>
toList(java.lang.Iterable<T> iterable)
          Deprecated. since 2.12.3. Use ImmutableList.copyOf(Iterable) instead.
static
<T> java.util.List<T>
toList(java.util.Iterator<T> iterator)
          Deprecated. since 2.12.3. Use ImmutableList.copyOf(Iterator) instead.
static
<T,R> java.util.List<R>
transform(java.lang.Iterable<T> iterable, Function<T,R> transformer)
          Deprecated. since 2.12.3. Use Iterables.transform(Iterable, com.google.common.base.Function) instead.
static
<T,R> java.util.List<R>
transform(java.util.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
<T,R> java.util.Iterator<R>
transformIterator(java.util.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

CollectionUtil

public CollectionUtil()
Deprecated. 
Method Detail

foreach

public static <T> void foreach(java.util.Iterator<T> iterator,
                               Consumer<T> sink)
Deprecated. 

foreach

public static <T> void foreach(java.lang.Iterable<T> iterable,
                               Consumer<T> sink)
Deprecated. 

toList

@Deprecated
public static <T> java.util.List<T> toList(java.lang.Iterable<T> iterable)
Deprecated. since 2.12.3. Use ImmutableList.copyOf(Iterable) instead.

Returns:
the given iterable converted to a List.

toList

@Deprecated
public static <T> java.util.List<T> toList(java.util.Iterator<T> iterator)
Deprecated. since 2.12.3. Use ImmutableList.copyOf(Iterator) instead.

Returns:
the given iterator converted to a List.

transform

@Deprecated
public static <T,R> java.util.List<R> transform(java.util.Iterator<T> iterator,
                                                           Function<T,R> transformer)
Deprecated. since 2.12.3. Use Lists.transform(java.util.List, com.google.common.base.Function) instead.


transform

@Deprecated
public static <T,R> java.util.List<R> transform(java.lang.Iterable<T> iterable,
                                                           Function<T,R> transformer)
Deprecated. since 2.12.3. Use Iterables.transform(Iterable, com.google.common.base.Function) instead.


transformIterator

@Deprecated
public static <T,R> java.util.Iterator<R> transformIterator(java.util.Iterator<T> iterator,
                                                                       Function<T,R> transformer)
Deprecated. since 2.12.3. Use Iterators.transform(java.util.Iterator, com.google.common.base.Function) instead.


filter

@Deprecated
public static <T> java.util.Iterator<T> filter(java.util.Iterator<T> iterator,
                                                          Predicate<T> predicate)
Deprecated. since 2.12.3. Use Iterators.filter(java.util.Iterator, com.google.common.base.Predicate) instead.

Create a filtered Iterator.


filter

public static <T> java.lang.Iterable<T> filter(java.lang.Iterable<T> iterable,
                                               Predicate<T> predicate)
Deprecated. since 2.12.3. Use Iterables.filter(java.lang.Iterable, com.google.common.base.Predicate) instead.

Create a filtered Iterator.


sort

public static <T> java.util.List<T> sort(java.util.Collection<T> collection,
                                         java.util.Comparator<T> comparator)
Deprecated. 


Copyright © 2012 Atlassian. All Rights Reserved.