com.endeca.collections.util
Class ConverterUtil

java.lang.Object
  extended by com.endeca.collections.util.ConverterUtil

public class ConverterUtil
extends java.lang.Object

This is a utility class for converting collection of one type to another.

Author:
bbarbosa

Nested Class Summary
protected static class ConverterUtil.LazyConverter<S,T>
           
 
Method Summary
static
<S,T> java.lang.Iterable<T>
lazyConvert(java.lang.Iterable<S> items, Converter<S,T> converter)
          This method will take an Iterable of type S, and using the passed converter, return an Iterable of type T that it will lazily convert.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

lazyConvert

public static <S,T> java.lang.Iterable<T> lazyConvert(java.lang.Iterable<S> items,
                                                      Converter<S,T> converter)
This method will take an Iterable of type S, and using the passed converter, return an Iterable of type T that it will lazily convert.

Parameters:
items -
converter -
Returns:
Iterable