The long shape of the object is long ...
You should use long and int, unless you need to use methods inherited from Object, such as hashcode. Typically, java.util.collections methods use boxed (Object-wrapped) versions, since they should work for any object
long is also a missing value, while Long is a value passed by reference, like all non-primitive Java types
In addition, Long may be null
source share