Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for return (0.21 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

      static <K, V> Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      static <K, V> Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
        return Maps.newLinkedHashMapWithExpectedSize(expectedSize);
      }
    
      static <E> Set<E> newHashSetWithExpectedSize(int expectedSize) {
        return Sets.newHashSetWithExpectedSize(expectedSize);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 29 18:16:45 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/Platform.java

     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      private Platform() {}
    
      /** Returns a thread-local 1024-char array. */
      static char[] charBufferFromThreadLocal() {
        // requireNonNull accommodates Android's @RecentlyNullable annotation on ThreadLocal.get
        return requireNonNull(DEST_TL.get());
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/Platform.java

     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
      private Platform() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Aug 04 01:39:13 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java

        /*
         * This method is used only by CatchingFuture, and CatchingFuture accepts only Throwable.class
         * under GWT.
         */
        return true;
      }
    
      static void restoreInterruptIfIsInterruptedException(Throwable t) {}
    
      private Platform() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 08 20:30:27 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  5. guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/Platform.java

     *
     * @author Chris Povirk
     */
    final class Platform {
      /** Serializes and deserializes the specified object (a no-op under GWT). */
      @SuppressWarnings("unchecked")
      static <T> T reserialize(T object) {
        return checkNotNull(object);
      }
    
      private Platform() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Platform.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      static boolean isInstanceOfThrowableClass(
          @CheckForNull Throwable t, Class<? extends Throwable> expectedClass) {
        return expectedClass.isInstance(t);
      }
    
      static void restoreInterruptIfIsInterruptedException(Throwable t) {
        checkNotNull(t); // to satisfy NullPointerTester
        if (t instanceof InterruptedException) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 10 12:27:25 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/Platform.java

      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
      /** See {@link ListListIteratorTester} */
      static int listListIteratorTesterNumIterations() {
        return 4;
      }
    
      /** See {@link CollectionIteratorTester} */
      static int collectionIteratorTesterNumIterations() {
        return 5;
      }
    
      private Platform() {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.3K bytes
    - Viewed (0)
  8. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/Platform.java

        // TODO(hhchan): It's 4 in java.  Figure out why even 3 is too slow in prod mode.
        return 2;
      }
    
      // Use fewer steps in the IteratorTester in CollectionIteratorTester because it's slow in prod
      // mode.
      static int collectionIteratorTesterNumIterations() {
        return 3;
      }
    
      // TODO: Consolidate different copies in one single place.
      static String format(String template, Object... args) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 04 15:31:40 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
      private Platform() {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 04 01:39:13 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Platform.java

        return String.format(Locale.ROOT, "%.4g", value);
      }
    
      static boolean stringIsNullOrEmpty(@CheckForNull String string) {
        return string == null || string.isEmpty();
      }
    
      /**
       * Returns the string if it is not null, or an empty string otherwise.
       *
       * @param string the string to test and possibly return
       * @return {@code string} if it is not null; {@code ""} otherwise
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 17:58:45 GMT 2023
    - 3.3K bytes
    - Viewed (0)
Back to top