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:
andrzej
2007-03-30 19:39:00 +00:00
parent 8974917d87
commit b045017252
@@ -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