Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DummyProxy (0.05 sec)

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

     *
     * @author Ben Yu
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    abstract class DummyProxy {
    
      /**
       * Returns a new proxy for {@code interfaceType}. Proxies of the same interface are equal to each
       * other if the {@link DummyProxy} instance that created the proxies are equal.
       */
      final <T> T newProxy(TypeToken<T> interfaceType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 08 17:31:55 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        } else {
          return TypeToken.of(Object.class);
        }
      }
    
      private <T> T newDefaultReturningProxy(final TypeToken<T> type) {
        return new DummyProxy() {
          @Override
          <R> @Nullable R dummyReturnValue(TypeToken<R> returnType) {
            return getDefaultValue(returnType);
          }
        }.newProxy(type);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        } else {
          return TypeToken.of(Object.class);
        }
      }
    
      private <T> T newDefaultReturningProxy(final TypeToken<T> type) {
        return new DummyProxy() {
          @Override
          <R> @Nullable R dummyReturnValue(TypeToken<R> returnType) {
            return getDefaultValue(returnType);
          }
        }.newProxy(type);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          super(factory + " returns null and cannot be used to test instance methods.");
        }
      }
    
      private static final class SerializableDummyProxy extends DummyProxy implements Serializable {
    
        private final transient ClassSanityTester tester;
    
        SerializableDummyProxy(ClassSanityTester tester) {
          this.tester = tester;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top