Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 233 for sage (0.12 sec)

  1. android/guava/src/com/google/common/base/Throwables.java

     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Throwables {
      private Throwables() {}
    
      /**
       * Throws {@code throwable} if it is an instance of {@code declaredType}. Example usage:
       *
       * <pre>
       * for (Foo foo : foos) {
       *   try {
       *     foo.bar();
       *   } catch (BarException | RuntimeException | Error t) {
       *     failure = t;
       *   }
       * }
       * if (failure != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
       * safe to do so. The exact circumstances under which a copy will or will not be performed are
       * undocumented and subject to change.
       *
       * <p>This method is not type-safe, as it may be called on elements that are not mutually
       * comparable.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

             *            sqrtFloor^2 <= x < (sqrtFloor + 1)^2
             * halfSquare - sqrtFloor <= x < halfSquare + sqrtFloor + 1
             * so |x - halfSquare| <= sqrtFloor.  Therefore, it's safe to treat x - halfSquare as a
             * signed long, so lessThanBranchFree is safe for use.
             */
            return sqrtFloor + lessThanBranchFree(halfSquare, x);
        }
        throw new AssertionError();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeResolver.java

          return capture(type);
        }
      }
    
      /**
       * Wraps around {@code TypeVariable<?>} to ensure that any two type variables are equal as long as
       * they are declared by the same {@link java.lang.reflect.GenericDeclaration} and have the same
       * name, even if their bounds differ.
       *
       * <p>While resolving a type variable from a {@code var -> type} map, we don't care whether the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Types.java

       * that an abstract method is unimplemented. So instead we use a dynamic proxy to get an
       * implementation. If the method being called on the {@code TypeVariable} instance has the same
       * name as one of the public methods of {@link TypeVariableImpl}, the proxy calls the same method
       * on its instance of {@code TypeVariableImpl}. Otherwise it throws {@link
       * UnsupportedOperationException}; this should only apply to {@code getAnnotatedBounds()}. This
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * {@link #acquire()} blocks if necessary until a permit is available, and then takes it. Once
     * acquired, permits need not be released.
     *
     * <p>{@code RateLimiter} is safe for concurrent use: It will restrict the total rate of calls from
     * all threads. Note, however, that it does not guarantee fairness.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LoadingCache.java

     * instances is using {@link CacheBuilder}.
     *
     * <p>Implementations of this interface are expected to be thread-safe, and can be safely accessed
     * by multiple concurrent threads.
     *
     * <p>When evaluated as a {@link Function}, a cache yields the same result as invoking {@link
     * #getUnchecked}.
     *
     * @param <K> the type of the cache's keys, which are not permitted to be null
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterables.java

            return next;
          }
        }
        return null;
      }
    
      /**
       * Determines whether two iterables contain equal elements in the same order. More specifically,
       * this method returns {@code true} if {@code iterable1} and {@code iterable2} contain the same
       * number of elements and every element of {@code iterable1} is equal to the corresponding element
       * of {@code iterable2}.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

        }
      }
    
      public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if ((map instanceof ImmutableMap) && !(map instanceof ImmutableSortedMap)) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map;
          return kvMap;
        } else if (map instanceof EnumMap) {
          EnumMap<?, ?> enumMap = (EnumMap<?, ?>) map;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableList.java

            /*
             * requireNonNull is safe because the callers promise to put non-null objects in the first
             * `length` array elements.
             */
            @SuppressWarnings("unchecked") // our callers put only E instances into the array
            E onlyElement = (E) requireNonNull(elements[0]);
            return of(onlyElement);
          default:
            /*
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
Back to top