Code example for FluentIterable

Methods: filter

0
	 * @param condition 
	 *          the condition, which returns true if the object should pass 
	 * @return new stream with filter applied 
	 */ 
	public DataStream<O> filter(final Predicate<? super O> condition) {
		return new DataStream<O>(source.filter(condition));
	} 
 
	/** 
	 * Apply a map function to each element and emit a stream of mapped objects 
	 *  
	 * @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));
	} 
 
	/**