Code example for FluentIterable

Methods: transform

0
	 * @param fn 
	 *          the map function 
	 * @return new stream 
	 */ 
	public <T> DataStream<T> map(final Function<? super O, T> fn) {
		return new DataStream<T>(source.transform(fn));
	} 
 
	/** 
	 * Reduce the stream into a single object 
	 *  
	 * @param fn 
	 *          the reduction function 
	 * @return resulting object 
	 */ 
	public <T> T reduce(final Function<Iterable<O>, T> fn) {
		return fn.apply(source);
	} 
 
	/** 
Contextual code suggestions in your IDE  Get Codota for Java