Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 234 for typeID (0.18 sec)

  1. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      private static class TypeA {}
    
      private interface TypeB {}
    
      private static class HasBoth extends TypeA implements TypeB {}
    
      @GwtIncompatible // Iterables.filter(Iterable, Class)
      public void testFilterByType_iterator() throws Exception {
        HasBoth hasBoth = new HasBoth();
        Iterable<TypeA> alist = Lists.newArrayList(new TypeA(), new TypeA(), hasBoth, new TypeA());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testNewArrayType_upperBoundedWildcard() {
        Type wildcard = Types.subtypeOf(Number.class);
        assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard));
      }
    
      public void testNewArrayType_lowerBoundedWildcard() {
        Type wildcard = Types.supertypeOf(Number.class);
        assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Primitives.java

        @SuppressWarnings("unchecked")
        Class<T> wrapped = (Class<T>) PRIMITIVE_TO_WRAPPER_TYPE.get(type);
        return (wrapped == null) ? type : wrapped;
      }
    
      /**
       * Returns the corresponding primitive type of {@code type} if it is a wrapper type; otherwise
       * returns {@code type} itself. Idempotent.
       *
       * <pre>
       *     unwrap(Integer.class) == int.class
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 05 19:04:25 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * ClosingFuture)}.
         *
         * @param <V1> the type returned by the first future
         * @param <V2> the type returned by the second future
         * @param <V3> the type returned by the third future
         * @param <V4> the type returned by the fourth future
         * @param <V5> the type returned by the fifth future
         * @param <U> the type returned by the function
         */
        public interface ClosingFunction5<
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  5. 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)
  6. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top