Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 203 for typeID (0.14 sec)

  1. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        if (type.isArray()) {
          return createEmptyArray(type);
        }
        T jvmDefault = Defaults.defaultValue(Primitives.unwrap(type));
        if (jvmDefault != null) {
          return jvmDefault;
        }
        if (Modifier.isAbstract(type.getModifiers()) || !Modifier.isPublic(type.getModifiers())) {
          return arbitraryConstantInstanceOrNull(type);
        }
        final Constructor<T> constructor;
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  2. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

      private static <T> void setImplementation(Class<T> type, Class<? extends T> implementation) {
        checkArgument(type != implementation, "Don't register %s to itself!", type);
        checkArgument(
            !DEFAULTS.containsKey(type), "A default value was already registered for %s", type);
        checkArgument(
            implementations.put(type, implementation) == null,
            "Implementation for %s was already registered",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Defaults.java

          } else if (type == char.class) {
            return (T) Character.valueOf('\0');
          } else if (type == byte.class) {
            return (T) Byte.valueOf((byte) 0);
          } else if (type == short.class) {
            return (T) Short.valueOf((short) 0);
          } else if (type == int.class) {
            return (T) Integer.valueOf(0);
          } else if (type == long.class) {
            return (T) Long.valueOf(0L);
          } else if (type == float.class) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

          return new ParameterizedType() {
            @Override
            public Type[] getActualTypeArguments() {
              return new Type[] {new TypeCapture<P>() {}.capture()};
            }
    
            @Override
            public Type getOwnerType() {
              return new TypeCapture<O>() {}.capture();
            }
    
            @Override
            public Type getRawType() {
              return new TypeCapture<T>() {}.capture();
            }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Closer.java

       * given types. Otherwise, it will be rethrown wrapped in a {@code RuntimeException}. <b>Note:</b>
       * Be sure to declare all of the checked exception types your try block can throw when calling an
       * overload of this method so as to avoid losing the original exception type.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeResolverTest.java

      public void testWhere_noMapping() {
        Type t = aTypeVariable();
        assertEquals(t, new TypeResolver().resolveType(t));
      }
    
      public void testWhere_typeVariableMapping() {
        Type t = aTypeVariable();
        assertEquals(String.class, new TypeResolver().where(t, String.class).resolveType(t));
      }
    
      public <T> void testWhere_indirectMapping() {
        Type t1 = new TypeCapture<T>() {}.capture();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/EnumBiMap.java

      transient Class<K> keyTypeOrObjectUnderJ2cl;
      transient Class<V> valueTypeOrObjectUnderJ2cl;
    
      /**
       * Returns a new, empty {@code EnumBiMap} using the specified key and value types.
       *
       * @param keyType the key type
       * @param valueType the value type
       */
      public static <K extends Enum<K>, V extends Enum<V>> EnumBiMap<K, V> create(
          Class<K> keyType, Class<V> valueType) {
        return new EnumBiMap<>(keyType, valueType);
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableCollection.java

     * <i>type</i> offering meaningful behavioral guarantees. This is substantially different from the
     * case of (say) {@link HashSet}, which is an <i>implementation</i>, with semantics that were
     * largely defined by its supertype.
     *
     * <p>For field types and method return types, you should generally use the immutable type (such as
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableCollection.java

     * <i>type</i> offering meaningful behavioral guarantees. This is substantially different from the
     * case of (say) {@link HashSet}, which is an <i>implementation</i>, with semantics that were
     * largely defined by its supertype.
     *
     * <p>For field types and method return types, you should generally use the immutable type (such as
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/escape/ElementTypesAreNonnullByDefault.java

    import static java.lang.annotation.ElementType.TYPE;
    import static java.lang.annotation.RetentionPolicy.RUNTIME;
    
    import com.google.common.annotations.GwtCompatible;
    import java.lang.annotation.Retention;
    import java.lang.annotation.Target;
    import javax.annotation.Nonnull;
    import javax.annotation.meta.TypeQualifierDefault;
    
    /**
     * Marks all "top-level" types as non-null in a way that is recognized by Kotlin. Note that this
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 17 15:44:29 GMT 2021
    - 1.5K bytes
    - Viewed (0)
Back to top