# | Line 265 | Line 265 | public class CountDownLatch { | |
---|---|---|
265 | public long getCount() { | |
266 | return sync.getCount(); | |
267 | } | |
268 | + | |
269 | + | /** |
270 | + | * Returns a string identifying this latch, as well as its count. |
271 | + | * @return a string identifying this latch, as well as its count. |
272 | + | */ |
273 | + | public String toString() { |
274 | + | return super.toString() + "[Count = " + sync.getCount() + "]"; |
275 | + | } |
276 | + | |
277 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |