Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for type (0.19 sec)

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

        return new SimpleTypeToken<>(type);
      }
    
      /** Returns an instance of type token that wraps {@code type}. */
      public static TypeToken<?> of(Type type) {
        return new SimpleTypeToken<>(type);
      }
    
      /**
       * Returns the raw type of {@code T}. Formally speaking, if {@code T} is returned by {@link
       * java.lang.reflect.Method#getGenericReturnType}, the raw type is what's returned by {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

       * the warnings the {@link MoreExecutors#directExecutor} documentation.
       *
       * @param input the primary input {@code Future}
       * @param exceptionType the exception type that triggers use of {@code fallback}. The exception
       *     type is matched against the input's exception. "The input's exception" means the cause of
       *     the {@link ExecutionException} thrown by {@code input.get()} or, if {@code get()} throws a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilder.java

       * the cache, but only the "generic" one is type-safe. That is, it will properly prevent you from
       * building caches whose key or value types are incompatible with the types accepted by the
       * weigher already provided; the {@code CacheBuilder} type cannot do this. For best results,
       * simply use the standard method-chaining idiom, as illustrated in the documentation at top,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * <p><b>Warning:</b> This method assumes that for any instance {@code k} of {@code
       * EntryTransformer} key type {@code K}, {@code k.equals(k2)} implies that {@code k2} is also of
       * type {@code K}. Using an {@code EntryTransformer} key type for which this may not hold, such as
       * {@code ArrayList}, may risk a {@code ClassCastException} when calling methods on the
       * transformed multimap.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 86.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        <T> T waitFor(final T delegate, final Class<T> type) {
          checkState(proxy == null);
          T proxyObject =
              Reflection.newProxy(
                  type,
                  new InvocationHandler() {
                    @Override
                    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
                      if (!method.getDeclaringClass().equals(type)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Iterators.java

       *
       * @param iterator the iterator to copy
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of the iterator have been copied
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
          Iterator<? extends T> iterator, Class<@NonNull T> type) {
        List<T> list = Lists.newArrayList(iterator);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertNotPrimitive(type);
        assertEquals(TypeToken.of(Primitives.unwrap((Class<?>) type.getType())), type.unwrap());
      }
    
      private static void assertNotWrapper(TypeToken<?> type) {
        assertSame(type, type.unwrap());
      }
    
      private static void assertNotPrimitiveNorWrapper(TypeToken<?> type) {
        assertNotPrimitive(type);
        assertNotWrapper(type);
      }
    
      private interface BaseInterface {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Preconditions.java

     * <p>As with any performance concerns, you should consider profiling your code (in a production
     * environment if possible) before spending a lot of effort on tweaking a particular element.
     *
     * <h3>Other types of preconditions</h3>
     *
     * <p>Not every type of precondition failure is supported by these methods. Continue to throw
     * standard JDK exceptions such as {@link java.util.NoSuchElementException} or {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

       *
       * @param iterator the iterator to copy
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of the iterator have been copied
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
          Iterator<? extends T> iterator, Class<@NonNull T> type) {
        List<T> list = Lists.newArrayList(iterator);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 20 03:33:06 GMT 2024
    - 50.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixPatterns.java

      /**
       * The elements in this map would pass the UNDER test, but are known not to be public suffixes and
       * are thus excluded from consideration. Since it refers to elements in UNDER of the same type,
       * the type is actually not important here. The map is simply used for consistency reasons.
       */
      public static final ImmutableMap<String, PublicSuffixType> EXCLUDED =
          TrieParser.parseTrie(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 21 21:04:43 GMT 2024
    - 72.4K bytes
    - Viewed (1)
Back to top