Added a hasResult method for whenever someone needs it.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2080 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -27,6 +27,14 @@ public class ResultHandler<T>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the result (or error, if the request failed) is already available.
|
||||
*/
|
||||
public boolean hasResult ()
|
||||
{
|
||||
return (_list == null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Peeks at the result, which will be returned if already available. If the result is pending
|
||||
* or there was an error, this method returns <code>null</code> (which, however, will also be
|
||||
|
||||
Reference in New Issue
Block a user