-
Enhancement
-
Resolution: Fixed
-
P4
-
1.2.0, 6
-
tiger
-
generic, x86
-
generic, windows_xp
Name: clC74495 Date: 11/26/98
Another useful method to add to Collections might
be a count method, to return the number of
instances of an object in a Collection / List:
int count( List list, Object o )
This would return the number of entries, e,
in list where e.equals( o ) == true.
It could have a further option to provide a
Comparator to determine equality:
int count( List list, Object o, Comparator c )
(Review ID: 43336)
======================================================================
- duplicates
-
JDK-6680235 (collection) Object count method.
- Closed