Project

General

Profile

Actions

Task #5861

closed

static boolean containsSingleObject(Collection<?> collection)

Added by Sergey Smolov over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
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.

Actions

Also available in: Atom PDF