Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isKnownToHaveConstantTimeSizeMethod (0.61 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/WithEstimatedSize.java

         *
         * @return the estimate size of the object
         */
        int estimatedSize();
    
        class Estimates {
            public static <T> int estimateSizeOf(Collection<T> collection) {
                if (isKnownToHaveConstantTimeSizeMethod(collection)) {
                    return collection.size();
                }
                if (collection instanceof WithEstimatedSize) {
                    return ((WithEstimatedSize) collection).estimatedSize();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 18 08:11:23 UTC 2017
    - 2.7K bytes
    - Viewed (0)
Back to top