Interface Size64

    • Method Detail

      • size64

        long size64()
        Returns the size of this data structure as a long.
        Returns:
        the size of this data structure.
      • size

        @Deprecated
        default int size()
        Deprecated.
        Use size64() instead.
        Returns the size of this data structure, minimized with Integer.MAX_VALUE.

        This default implementation follows the definition above, which is compatible with Collection.size().

        Returns:
        the size of this data structure, minimized with Integer.MAX_VALUE.
        See Also:
        Collection.size()
      • sizeOf

        static long sizeOf​(java.util.Collection<?> c)
        Returns the size for a given Collection as a long, using size64() if applicable, else using Collection.size().
        Parameters:
        c - the collection whose size to get
        Returns:
        the size
      • sizeOf

        static long sizeOf​(java.util.Map<?,​?> m)
        Returns the size for a given Map as a long, using size64() if applicable, else using Map.size().
        Parameters:
        m - the map whose size to get
        Returns:
        the size