ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CountDownLatch.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CountDownLatch.java (file contents):
Revision 1.20 by dl, Fri Jan 9 14:45:17 2004 UTC vs.
Revision 1.21 by dl, Sat Jan 10 01:41:44 2004 UTC

# 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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines