Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 218 for efficient (0.84 sec)

  1. android/guava/src/com/google/common/reflect/Types.java

          }
        }
      }
    
      /** Returns the {@code Class} object of arrays with {@code componentType}. */
      static Class<?> getArrayClass(Class<?> componentType) {
        // TODO(user): This is not the most efficient way to handle generic
        // arrays, but is there another way to extract the array class in a
        // non-hacky way (i.e. using String value class names- "[L...")?
        return Array.newInstance(componentType, 0).getClass();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CharSource.java

       * Reader#skip(long) skip} to the end of the stream, and return the total number of chars that
       * were skipped.
       *
       * <p>Note that for sources that implement {@link #lengthIfKnown} to provide a more efficient
       * implementation, it is <i>possible</i> that this method will return a different number of chars
       * than would be returned by reading all of the chars.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/CharSource.java

       * Reader#skip(long) skip} to the end of the stream, and return the total number of chars that
       * were skipped.
       *
       * <p>Note that for sources that implement {@link #lengthIfKnown} to provide a more efficient
       * implementation, it is <i>possible</i> that this method will return a different number of chars
       * than would be returned by reading all of the chars.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        return file(new File(first), more);
      }
    
      /** Returns a {@code File} object for the given path parts. */
      private static File file(File first, String... more) {
        // not very efficient, but should definitely be correct
        File file = first;
        for (String name : more) {
          file = new File(file, name);
        }
        return file;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

            }
    
            if (updateScope) {
                fireEvent(ResolutionListener.UPDATE_SCOPE, listeners, nearest, farthestArtifact);
    
                // previously we cloned the artifact, but it is more efficient to just update the artifactScope
                // if problems are later discovered that the original object needs its original artifactScope value,
                // cloning may
                // again be appropriate
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

     *     .url("http://publicobject.com/helloworld.txt")
     *     .build();
     * ```
     *
     * If it is only necessary to force a cached response to be validated by the server, use the more
     * efficient `max-age=0` directive instead:
     *
     * ```java
     * Request request = new Request.Builder()
     *     .cacheControl(new CacheControl.Builder()
     *         .maxAge(0, TimeUnit.SECONDS)
     *         .build())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Multiset.java

      }
    
      /**
       * Runs the specified action for each distinct element in this multiset, and the number of
       * occurrences of that element. For some {@code Multiset} implementations, this may be more
       * efficient than iterating over the {@link #entrySet()} either explicitly or with {@code
       * entrySet().forEach(action)}.
       *
       * @since 21.0
       */
      default void forEachEntry(ObjIntConsumer<? super E> action) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals("", is('a').retainFrom(""));
      }
    
      public void testPrecomputedOptimizations() {
        // These are testing behavior that's never promised by the API.
        // Some matchers are so efficient that it is a waste of effort to
        // build a precomputed version.
        CharMatcher m1 = is('x');
        assertSame(m1, m1.precomputed());
        assertEquals(m1.toString(), m1.precomputed().toString());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SID.java

         * name associated with SIDs will be required, the SID_FLAG_RESOLVE_SIDS
         * flag should be used which causes all group member SIDs to be resolved
         * together in a single more efficient operation.
         */
        static Map getLocalGroupsMap(final String authorityServerName, final NtlmPasswordAuthentication auth, final int flags)
                throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Sets.java

            }
            return true; // that.size() == this.size()
          }
        }
    
        /**
         * Returns a lower bound for {@link #size()} based on the sizes of the backing sets.
         *
         * <p>This is more efficient than {@link #size()}, which iterates over the entire {@link
         * SetView}.
         */
        abstract int minSize();
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
Back to top