why CountDownLatch.getCount() returns a long but not an int?

Viewed 1150

I looked into the code, everything is int -- the parameter passed to CountDownLatch constructor is int, the variable in Sync is int, the return type of Sync.getCount() is int. But CountDownLatch.getCount() returns a long? Wondering why.

4 Answers
Related