@SuppressWarnings("unchecked") public Collection<IgniteInternalFuture<T>> futures(){
synchronized (sync) {
    if (futs == null)     return Collections.emptyList();
    if (futs instanceof IgniteInternalFuture)     return Collections.singletonList((IgniteInternalFuture<T>)futs);
    return new ArrayList<>((Collection<IgniteInternalFuture<T>>)futs);
  }
}

@ SuppressWarnings ( "unchecked" ) public Collection < IgniteInternalFuture < T > > futures ( ) { synchronized ( sync ) { if ( futs == null ) return Collections . emptyList ( ) ; if ( futs instanceof IgniteInternalFuture ) return Collections . singletonList ( ( IgniteInternalFuture < T > ) futs ) ; return new ArrayList < > ( ( Collection < IgniteInternalFuture < T > > ) futs ) ; } }
gets collection of futures .
