public interface Size64
Integer.MAX_VALUE.
The only methods specified by this interfaces are size64(), and
a deprecated size() identical to Collection.size(). Implementations
can work around the type problem of Collection.size()
(e.g., not being able to return more than Integer.MAX_VALUE) by implementing this
interface. Callers interested in large structures
can use a reflective call to instanceof to check for the presence of size64().
We remark that it is always a good idea to implement both size() and size64(),
as the former might be implemented by a superclass in an incompatible way. If you implement this interface,
just implement size() as a deprecated method returning Math.min(Integer.MAX_VALUE, size64()).
long size64()
@Deprecated int size()
size64() instead.Integer.MAX_VALUE.Integer.MAX_VALUE.Collection.size()