Why ConcurrentHashMap.Segment
and ConcurrentHashMap.HashEntry
classes are static?
Why it is designed in this way ?
Basically all inner classes which does not need to use the properties of their enclosing classes are supposed to be static
. This comes from the general principle in java which says that every object should have access to the least possible other objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With