Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for type (0.12 sec)

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

            CURRENT = JAVA6;
          }
        }
    
        abstract Type newArrayType(Type componentType);
    
        abstract Type usedInGenericType(Type type);
    
        final ImmutableList<Type> usedInGenericType(Type[] types) {
          ImmutableList.Builder<Type> builder = ImmutableList.builder();
          for (Type type : types) {
            builder.add(usedInGenericType(type));
          }
          return builder.build();
        }
    
    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)
  2. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      private static String paramString(Class<?> type, int i) {
        return type.getSimpleName() + '@' + i;
      }
    
      /**
       * Annotates a method to be the instance generator of a certain type. The return type is the
       * generated type. The method parameters correspond to the generated type's type parameters. For
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      /*
       * This class is used to serialize all ImmutableSortedSet instances,
       * regardless of implementation type. It captures their "logical contents"
       * only. This is necessary to ensure that the existence of a particular
       * implementation type is an implementation detail.
       */
      @J2ktIncompatible // serialization
      private static class SerializedForm<E> implements Serializable {
    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)
  4. android/guava/src/com/google/common/collect/Comparators.java

       * {@code lexicographical(Collections.reverseOrder(comparator))} (consider how each would order
       * {@code [1]} and {@code [1, 1]}).
       */
      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
      // desired return type. However, *nested* generics introduce a special class of problems that we
      // think tip it over into being worthwhile.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of the iterable have been copied
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
          Iterable<? extends T> iterable, Class<@NonNull T> type) {
        return toArray(iterable, ObjectArrays.newArray(type, 0));
      }
    
    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)
  6. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    /**
     * Tester for {@code Spliterator} implementations.
     *
     * @since 21.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class SpliteratorTester<E extends @Nullable Object> {
      /** Return type from "contains the following elements" assertions. */
      public interface Ordered {
        /**
         * Attests that the expected values must not just be present but must be present in the order
         * they were given.
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * parameters used to build this multimap.
       */
      @Override
      public ImmutableSet<V> get(K key) {
        // This cast is safe as its type is known in constructor.
        ImmutableSet<V> set = (ImmutableSet<V>) map.get(key);
        return MoreObjects.firstNonNull(set, emptySet);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMap.java

         * So it makes sense for the parameter (and thus the return type) to be @CheckForNull.
         *
         * Two other points:
         *
         * 1. We'll want to use something like @PolyNull once we can make that work for the various
         * platforms we target.
         *
         * 2. Kotlin's Map type has a getOrDefault method that accepts and returns a "plain V," in
         * contrast to the "V?" type that we're using. As a result, Kotlin sees a conflict between the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      private static String paramString(Class<?> type, int i) {
        return type.getSimpleName() + '@' + i;
      }
    
      /**
       * Annotates a method to be the instance generator of a certain type. The return type is the
       * generated type. The method parameters correspond to the generated type's type parameters. For
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multisets.java

          Multiset<?> multisetToModify, Multiset<?> multisetToRetain) {
        return retainOccurrencesImpl(multisetToModify, multisetToRetain);
      }
    
      /** Delegate implementation which cares about the element type. */
      private static <E extends @Nullable Object> boolean retainOccurrencesImpl(
          Multiset<E> multisetToModify, Multiset<?> occurrencesToRetain) {
        checkNotNull(multisetToModify);
        checkNotNull(occurrencesToRetain);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
Back to top