Common Super Type for Boxed Types and Array Types

Suminda Sirinath Salpitikorala Dharmasena sirinath1978m at gmail.com
Thu Dec 10 09:00:51 UTC 2020


Hello,

Some of the boxed types device directly from Object. Also, the array types
derive from Object.

This is sometimes inconvenient when pacifying API signatures and bounds.

So is it possible to consider a hierarchy like:
- BoxedPrimitive
  - Number
    - Integer
    - ...
  - Boolean
  - Character
- Array
  - PrimitiveArray
    - NumberArray
      - int[]
      - ...
  - boolean[]
  - character[]
  - ObjectArray<T>

Suminda


More information about the valhalla-dev mailing list