[concurrency-interest] Re: AtomicInteger and AtomicLong should implement Number

David Holmes dholmes@dltech.com.au
Mon, 5 Jan 2004 13:40:13 +1000

> I recognize that this would not be a backward compatible change.  I
> wonder how many people would have extended Number...

Ignoring issues of whether Number should have been an interface, and
whether all Numbers must be immutable, exactly why do you think
AtomicInteger and AtomicLong should be Numbers?

AtomicInteger and AtomicLong are not numeric types, ala Integer, Long,
Float, BigDecimal etc, but simply utility classes to access int or
long values in an atomic way.

David Holmes