Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  3. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        S newSegment(MapMakerInternalMap<K, V, E, S> map, int initialCapacity);
    
        /**
         * Returns a freshly created entry, typed at the {@code E} type, for the given {@code segment}.
         */
        E newEntry(S segment, K key, int hash, @CheckForNull E next);
    
        /**
         * Returns a freshly created entry, typed at the {@code E} type, for the given {@code segment},
         * that is a copy of the given {@code entry}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

        Class<E> type = collection.iterator().next().getDeclaringClass();
        return makeComplementByHand(collection, type);
      }
    
      /**
       * Creates an {@code EnumSet} consisting of all enum values that are not in the specified
       * collection. This is equivalent to {@link EnumSet#complementOf}, but can act on any input
       * collection, as long as the elements are of enum type.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  6. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  7. 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 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  8. 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)
  9. guava-tests/test/com/google/common/collect/MapsTest.java

        integerKeyed = transformEntries(map9, transformer);
    
        Map<? extends Number, Double> wildcarded = transformEntries(map0, transformer);
    
        // Can't loosen the key type:
        // objectKeyed = transformEntries(map5, transformer);
        // objectKeyed = transformEntries(map6, transformer);
        // objectKeyed = transformEntries(map8, transformer);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapsTest.java

        integerKeyed = transformEntries(map9, transformer);
    
        Map<? extends Number, Double> wildcarded = transformEntries(map0, transformer);
    
        // Can't loosen the key type:
        // objectKeyed = transformEntries(map5, transformer);
        // objectKeyed = transformEntries(map6, transformer);
        // objectKeyed = transformEntries(map8, transformer);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
Back to top