org.apache.shindig.common.util
Class FutureUtil

java.lang.Object
  extended by org.apache.shindig.common.util.FutureUtil

public final class FutureUtil
extends Object

Utility methods for processing Future wrapped objects


Method Summary
static
<T> Future<T>
getFirstFromCollection(Future<RestfulCollection<T>> collection)
          Process a Future wrapped RestfulCollection to return the first (if any) object, as a Future
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFirstFromCollection

public static <T> Future<T> getFirstFromCollection(Future<RestfulCollection<T>> collection)
Process a Future wrapped RestfulCollection to return the first (if any) object, as a Future

Parameters:
collection - the collection to retrieve the first object from
Returns:
the Future wrapped object


Copyright © 2007-2012. All Rights Reserved.