Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 156 for Factory (0.23 sec)

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

            .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
      }
    
      private Iterable<LoadingCache<Key, String>> caches() {
        CacheBuilderFactory factory = factoryWithAllKeyStrengths();
        return Iterables.transform(
            factory.buildAllPermutations(),
            new Function<CacheBuilder<Object, Object>, LoadingCache<Key, String>>() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

     *   <li>an {@linkplain Thread#setUncaughtExceptionHandler uncaught exception handler}
     *   <li>a {@linkplain ThreadFactory#newThread backing thread factory}
     * </ul>
     *
     * <p>If no backing thread factory is provided, a default backing thread factory is used as if by
     * calling {@code setThreadFactory(}{@link Executors#defaultThreadFactory()}{@code )}.
     *
     * @author Kurt Alfred Kluever
     * @since 4.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/NewCustomTableTest.java

        Supplier<TreeMap<Integer, Character>> factory =
            new Supplier<TreeMap<Integer, Character>>() {
              @Override
              public TreeMap<Integer, Character> get() {
                return Maps.newTreeMap();
              }
            };
        Map<String, Map<Integer, Character>> backingMap = Maps.newLinkedHashMap();
        Table<String, Integer, Character> table = Tables.newCustomTable(backingMap, factory);
        populate(table, data);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/SourceSinkFactory.java

      /** Factory for {@link ByteSink} instances. */
      public interface ByteSinkFactory extends SinkFactory<ByteSink, byte[]> {}
    
      /** Factory for {@link CharSource} instances. */
      public interface CharSourceFactory extends SourceFactory<CharSource, String> {}
    
      /** Factory for {@link CharSink} instances. */
      public interface CharSinkFactory extends SinkFactory<CharSink, String> {}
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharSourceTester.java

          }
        }
        return suite;
      }
    
      static TestSuite suiteForBytes(
          CharSourceFactory factory, byte[] bytes, String name, String desc, boolean slice) {
        TestSuite suite = suiteForString(factory, new String(bytes, Charsets.UTF_8), name, desc);
        ByteSourceFactory byteSourceFactory = SourceSinkFactories.asByteSourceFactory(factory);
        suite.addTest(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        CountingSupplier<Queue<Integer>> factory = new QueueSupplier();
    
        Map<Color, Collection<Integer>> map = Maps.newEnumMap(Color.class);
        Multimap<Color, Integer> multimap = Multimaps.newMultimap(map, factory);
        assertEquals(0, factory.count);
        multimap.putAll(Color.BLUE, asList(3, 1, 4));
        assertEquals(1, factory.count);
        multimap.putAll(Color.RED, asList(2, 7, 1, 8));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/PatternFilenameFilter.java

       *
       * (PatternFilenameFilter is of course one of those classes that shouldn't be a publicly visible
       * class to begin with but rather something returned from a static factory method whose declared
       * return type is plain FilenameFilter. If we made such a change, then the annotation we choose
       * here would have no significance to end users, who would be forced to conform to the signature
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *       {@link NullPointerException}.
       *   <li>If there is any visible constructor or visible static factory method declared by the
       *       class, all visible instance methods will be checked too using the instance created by
       *       invoking the constructor or static factory method.
       *   <li>If the constructor or factory method used to construct instance takes a parameter that
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/TestingRemovalListeners.java

        return new NullRemovalListener<>();
      }
    
      /** Type-inferring factory method for creating a {@link QueuingRemovalListener}. */
      @GwtIncompatible // ConcurrentLinkedQueue
      static <K, V> QueuingRemovalListener<K, V> queuingRemovalListener() {
        return new QueuingRemovalListener<>();
      }
    
      /** Type-inferring factory method for creating a {@link CountingRemovalListener}. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/InvokableTest.java

        Invokable<?, ?> factory = Invokable.from(constructor);
        assertThat(factory.getTypeParameters()).hasLength(2);
        assertEquals(type.getTypeParameters()[0], factory.getTypeParameters()[0]);
        assertEquals(constructor.getTypeParameters()[0], factory.getTypeParameters()[1]);
        ParameterizedType returnType = (ParameterizedType) factory.getReturnType().getType();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
Back to top