Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Wong (0.21 sec)

  1. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(List[].class, token.getRawType());
        assertThat(token.getType()).isInstanceOf(GenericArrayType.class);
      }
    
      public void testMultiDimensionalGenericArrayType() {
        TypeToken<List<Long>[][][]> token = new TypeToken<List<Long>[][][]>() {};
        assertEquals(List[][][].class, token.getRawType());
        assertThat(token.getType()).isInstanceOf(GenericArrayType.class);
      }
    
      public <T> void testGenericVariableTypeArrays() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

       * Returns the number of elements remaining in {@code iterator}. The iterator will be left
       * exhausted: its {@code hasNext()} method will return {@code false}.
       */
      public static int size(Iterator<?> iterator) {
        long count = 0L;
        while (iterator.hasNext()) {
          iterator.next();
          count++;
        }
        return Ints.saturatedCast(count);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

       *
       * @since 20.0 (varargs overload since 2.0)
       */
      public static void checkArgument(
          boolean expression, String errorMessageTemplate, long p1, long p2) {
        if (!expression) {
          throw new IllegalArgumentException(lenientFormat(errorMessageTemplate, p1, p2));
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          Comparator<? super K> comparator,
          boolean sameComparator,
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

     * maximumSize}, {@link #maximumWeight(long) maximumWeight}, {@link #expireAfterWrite
     * expireAfterWrite}, {@link #expireAfterAccess expireAfterAccess}, {@link #weakKeys weakKeys},
     * {@link #weakValues weakValues}, or {@link #softValues softValues} are requested.
     *
     * <p>If {@link #maximumSize(long) maximumSize} or {@link #maximumWeight(long) maximumWeight} is
    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)
  6. guava/src/com/google/common/base/Preconditions.java

       *
       * @since 20.0 (varargs overload since 2.0)
       */
      public static void checkArgument(
          boolean expression, String errorMessageTemplate, long p1, long p2) {
        if (!expression) {
          throw new IllegalArgumentException(lenientFormat(errorMessageTemplate, p1, p2));
        }
      }
    
      /**
    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)
  7. android/guava/src/com/google/common/util/concurrent/Futures.java

      //    the initial write (just stronger guarantees if it does).
      //
      // See: http://cs.oswego.edu/pipermail/concurrency-interest/2015-January/013800.html
      // For a (long) discussion about this specific issue and the general futility of life.
      //
      // For the time being we are OK with the problem discussed above since it requires a caller to
    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)
  8. android/guava/src/com/google/common/collect/Multimaps.java

          setMap(map);
        }
    
        @GwtIncompatible // java serialization not supported
        @J2ktIncompatible
        private static final long serialVersionUID = 0;
      }
    
      /**
       * Creates a new {@code ListMultimap} that uses the provided map and factory. It can generate a
       * multimap based on arbitrary {@link Map} and {@link List} classes.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeToken.java

          ImmutableList<Class<? super T>> collectedTypes =
              (ImmutableList) TypeCollector.FOR_RAW_TYPE.collectTypes(getRawTypes());
          return ImmutableSet.copyOf(collectedTypes);
        }
    
        private static final long serialVersionUID = 0;
      }
    
      private final class InterfaceSet extends TypeSet {
    
        private final transient TypeSet allTypes;
        @CheckForNull private transient ImmutableSet<TypeToken<? super T>> interfaces;
    
    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)
  10. android/guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        private static final long serialVersionUID = 0;
      }
    
      static final class SynchronizedRandomAccessList<E extends @Nullable Object>
          extends SynchronizedList<E> implements RandomAccess {
        SynchronizedRandomAccessList(List<E> list, @CheckForNull Object mutex) {
          super(list, mutex);
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
Back to top