Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Integer (0.19 sec)

  1. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        Function<Integer, Integer> adder =
            new Function<Integer, Integer>() {
              @Override
              public Integer apply(Integer from) {
                return from + holder.value;
              }
            };
    
        // Since holder.value is 2, applying 4 should yield 6.
        assertEquals(6, adder.apply(4).intValue());
    
        ListenableFuture<Integer> immediateFuture = immediateFuture(4);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        Function<Integer, Integer> adder =
            new Function<Integer, Integer>() {
              @Override
              public Integer apply(Integer from) {
                return from + holder.value;
              }
            };
    
        // Since holder.value is 2, applying 4 should yield 6.
        assertEquals(6, adder.apply(4).intValue());
    
        ListenableFuture<Integer> immediateFuture = immediateFuture(4);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          assertTrue(segment.count <= originalCount);
          assertEquals(originalMap, ImmutableMap.copyOf(map));
        }
      }
    
      public void testRemoveIfWithConcurrentModification() {
        LocalCache<Integer, Integer> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).initialCapacity(1));
        map.put(1, 1);
        map.put(2, 1);
        map.put(3, 1);
        map.entrySet()
            .removeIf(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                .createTestSuite());
        suite.addTest(
            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(createCacheBuilder().maximumSize(Integer.MAX_VALUE)))
                .named("LocalCache with maximumSize")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

       * the map, such as iteration order, are left intact. For example, the code:
       *
       * <pre>{@code
       * Map<String, Integer> map = ImmutableMap.of("a", 4, "b", 9);
       * Function<Integer, Double> sqrt =
       *     new Function<Integer, Double>() {
       *       public Double apply(Integer in) {
       *         return Math.sqrt((int) in);
       *       }
       *     };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

            builder.appendCodePoint(cp);
          }
          return builder.toString();
        }
        // Use a shuffled index array to ensure constant percentage of matching
        // characters
        List<Integer> list = Lists.newArrayList();
        for (int i = 0; i < length; i++) {
          list.add(i);
        }
        Collections.shuffle(list, rand);
        if (forceSlow) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       * // Result.writeRowsToOutputStreamFuture() returns a ListenableFuture that resolves to the
       * // number of written rows. openOutputFile() returns a FileOutputStream (which implements
       * // Closeable).
       * ClosingFuture<Integer> rowsFuture2 =
       *     queryFuture.transformAsync(
       *         (closer, result) -> {
       *           FileOutputStream fos = closer.eventuallyClose(openOutputFile(), closingExecutor);
    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)
  8. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

            builder.appendCodePoint(cp);
          }
          return builder.toString();
        }
        // Use a shuffled index array to ensure constant percentage of matching
        // characters
        List<Integer> list = Lists.newArrayList();
        for (int i = 0; i < length; i++) {
          list.add(i);
        }
        Collections.shuffle(list, rand);
        if (forceSlow) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
Back to top