Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 322 for type (0.13 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. guava/src/com/google/common/collect/DiscreteDomain.java

       * input of type {@code C}.
       *
       * <p>The default implementation throws {@code NoSuchElementException}.
       *
       * @return the minimum value of type {@code C}; never null
       * @throws NoSuchElementException if the type has no (practical) minimum value; for example,
       *     {@link java.math.BigInteger}
       */
      @CanIgnoreReturnValue
      public C minValue() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. 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)
  4. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

      }
    
      public void testParameterizedType() {
        TypeToken<ImmutableList<Integer>> type = new TypeToken<ImmutableList<Integer>>() {};
        ImmutableTypeToInstanceMap<Iterable<?>> map =
            ImmutableTypeToInstanceMap.<Iterable<?>>builder().put(type, ImmutableList.of(1)).build();
        assertEquals(1, map.size());
        assertEquals(ImmutableList.of(1), map.getInstance(type));
      }
    
      public void testGenericArrayType() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ElementTypesAreNonnullByDefault.java

     * "undo" it as best we can.
     */
    @GwtCompatible
    @Retention(RUNTIME)
    @Target(TYPE)
    @TypeQualifierDefault({FIELD, METHOD, PARAMETER})
    @Nonnull
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/EnumHashBiMap.java

        extends AbstractBiMap<K, V> {
      transient Class<K> keyTypeOrObjectUnderJ2cl;
    
      /**
       * Returns a new, empty {@code EnumHashBiMap} using the specified key type.
       *
       * @param keyType the key type
       */
      public static <K extends Enum<K>, V extends @Nullable Object> EnumHashBiMap<K, V> create(
          Class<K> keyType) {
        return new EnumHashBiMap<>(keyType);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Predicate.java

     *
     * <p>As this interface extends {@code java.util.function.Predicate}, an instance of this type may
     * be used as a {@code Predicate} directly. To use a {@code java.util.function.Predicate} where a
     * {@code com.google.common.base.Predicate} is expected, use the method reference {@code
     * predicate::test}.
     *
     * <p>This interface is now a legacy type. Use {@code java.util.function.Predicate} (or the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/AndroidIncompatible.java

     */
    
    package com.google.common.base;
    
    import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
    import static java.lang.annotation.ElementType.CONSTRUCTOR;
    import static java.lang.annotation.ElementType.FIELD;
    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.TYPE;
    import static java.lang.annotation.RetentionPolicy.CLASS;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top