Actions
Task #5861
closedstatic boolean containsSingleObject(Collection<?> collection)
Start date:
04/20/2015
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Published in build:
Description
Implement a utility method with the following signature:
static boolean containsSingleObject(Collection<?> collection)
The method returns true
when the specified collection contains exactly one element, false
otherwise.
The method name can be changed to the one you think is more suitable.
Updated by Sergey Smolov over 9 years ago
- Status changed from New to Closed
This method declaration is longer than it's body && it's not extendible. So paranoic mode off:)
Actions