Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 69 for Raw (0.14 sec)

  1. guava-tests/test/com/google/common/cache/ForwardingCacheTest.java

      private Cache<String, Boolean> mock;
    
      @SuppressWarnings({"unchecked", "DoNotMock"}) // mock
      @Override
      public void setUp() throws Exception {
        super.setUp();
        /*
         * Class parameters must be raw, so we can't create a proxy with generic
         * type arguments. The created proxy only records calls and returns null, so
         * the type is irrelevant at runtime.
         */
        mock = mock(Cache.class);
        forward =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/Helpers.java

       * suitable for testing that map entries cannot be modified via a nefarious implementation of
       * equals. This is used for testing unmodifiable collections of map entries; for example, it
       * should not be possible to access the raw (modifiable) map entry via a nefarious equals method.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          Entry<K, V> nefariousMapEntry(K key, V value) {
        return new Entry<K, V>() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 17.7K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

    public class EnumsBenchmark {
    
      @Param({"Small", "Medium", "Large"})
      String enumSize;
    
      @Param({"0.2", "0.8"})
      float hitRate;
    
      // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...).
      // However, we end up needing a raw type in getIfPresent, as discussed there.
      @SuppressWarnings("rawtypes")
      private Class<? extends Enum> enumType;
    
      private String[] sampleData;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

    public class EnumsBenchmark {
    
      @Param({"Small", "Medium", "Large"})
      String enumSize;
    
      @Param({"0.2", "0.8"})
      float hitRate;
    
      // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...).
      // However, we end up needing a raw type in getIfPresent, as discussed there.
      @SuppressWarnings("rawtypes")
      private Class<? extends Enum> enumType;
    
      private String[] sampleData;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/DummyProxy.java

        }
    
        @Override
        public String toString() {
          return "Dummy proxy for " + interfaceType;
        }
    
        // Since type variables aren't serializable, reduce the type down to raw type before
        // serialization.
        private Object writeReplace() {
          return new DummyHandler(TypeToken.of(interfaceType.getRawType()));
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

        }
    
        @Override
        public String toString() {
          return "Dummy proxy for " + interfaceType;
        }
    
        // Since type variables aren't serializable, reduce the type down to raw type before
        // serialization.
        private Object writeReplace() {
          return new DummyHandler(TypeToken.of(interfaceType.getRawType()));
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

        }
    
        static Model transform(Model model, MavenProject project) {
            String packaging = model.getPackaging();
            if (POM_PACKAGING.equals(packaging)) {
                // raw to consumer transform
                model = model.withRoot(false).withModules(null);
                if (model.getParent() != null) {
                    model = model.withParent(model.getParent().withRelativePath(null));
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java

      private LoadingCache<String, Boolean> mock;
    
      @SuppressWarnings({"unchecked", "DoNotMock"}) // mock
      @Override
      public void setUp() throws Exception {
        super.setUp();
        /*
         * Class parameters must be raw, so we can't create a proxy with generic
         * type arguments. The created proxy only records calls and returns null, so
         * the type is irrelevant at runtime.
         */
        mock = mock(LoadingCache.class);
        forward =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  9. maven-compat/src/main/java/org/apache/maven/repository/RepositorySystem.java

        ArtifactResolutionResult resolve(ArtifactResolutionRequest request);
    
        // Install
    
        // Deploy
    
        // Map types of artifacts
    
        //
        // Raw file transfers
        //
        void publish(
                ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener)
                throws ArtifactTransferFailedException;
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ClassToInstanceMap.java

    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A map, each entry of which maps a Java <a href="http://tinyurl.com/2cmwkz">raw type</a> to an
     * instance of that type. In addition to implementing {@code Map}, the additional type-safe
     * operations {@link #putInstance} and {@link #getInstance} are available.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 3K bytes
    - Viewed (0)
Back to top