Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,397 for isInteger (0.07 sec)

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

      private static final Predicate<Entry<String, Integer>> ENTRY_PREDICATE =
          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
              return !"badkey".equals(entry.getKey()) && !((Integer) 55556).equals(entry.getValue());
            }
          };
    
      protected Multimap<String, Integer> create() {
        Multimap<String, Integer> unfiltered = HashMultimap.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        NavigableMap<String, Integer> map = create();
        SortedMap<String, Integer> headMap = map.headMap("a");
        assertTrue(headMap instanceof SynchronizedSortedMap);
        assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex);
      }
    
      public void testHeadMap_k_b() {
        NavigableMap<String, Integer> map = create();
        NavigableMap<String, Integer> headMap = map.headMap("a", true);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

        cache =
            CacheBuilder.newBuilder()
                .concurrencyLevel(segments)
                .maximumSize(maximumSize)
                .build(
                    new CacheLoader<Integer, Integer>() {
                      @Override
                      public Integer load(Integer from) {
                        return (int) misses.incrementAndGet();
                      }
                    });
    
        // To start, fill up the cache.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testFilterUsingIteratorTester() {
        final List<Integer> list = asList(1, 2, 3, 4, 5);
        final Predicate<Integer> isEven =
            new Predicate<Integer>() {
              @Override
              public boolean apply(Integer integer) {
                return integer % 2 == 0;
              }
            };
        new IteratorTester<Integer>(
            5, UNMODIFIABLE, asList(2, 4), IteratorTester.KnownOrder.KNOWN_ORDER) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TablesTest.java

        Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a');
        SerializableTester.reserializeAndAssert(entry);
      }
    
      public void testImmutableEntryToString() {
        Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a');
        assertEquals("(foo,1)=a", entry.toString());
    
        Cell<@Nullable String, @Nullable Integer, @Nullable Character> nullEntry =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java

        int i = 0;
        for (Object e : elements) {
          array[i++] = (Integer) e;
        }
        return create(array);
      }
    
      protected abstract Set<Integer> create(Integer[] elements);
    
      @Override
      public Integer[] createArray(int length) {
        return new Integer[length];
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>By default, returns the supplied elements in their given order; however, generators for
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        Multimap<String, Integer> original = HashMultimap.create();
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
        assertEquals(3, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromArrayListMultimap() {
        ArrayListMultimap<String, Integer> original = ArrayListMultimap.create(15, 20);
        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

          return makeArray(all).subArray(2, elements.length + 2).asList();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
      public static final class ImmutableIntArrayMiddleSubListAsListGenerator
          extends TestIntegerListGenerator {
        @Override
        protected List<Integer> create(Integer[] elements) {
          Integer[] prefix = {Integer.MIN_VALUE, Integer.MAX_VALUE};
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

          Arrays.sort(dataset);
          return singleQuantileFromSorted(index, scale, dataset);
        }
    
        @Override
        Map<Integer, Double> multipleQuantiles(
            Collection<Integer> indexes, int scale, double[] dataset) {
          Arrays.sort(dataset);
          ImmutableMap.Builder<Integer, Double> builder = ImmutableMap.builder();
          for (int index : indexes) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertFalse(Assignability.of().isAssignable());
        assertTrue(new Assignability<Integer, Integer>() {}.isAssignable());
        assertTrue(new Assignability<Integer, Object>() {}.isAssignable());
        assertFalse(new Assignability<Integer, String>() {}.isAssignable());
        TypeTokenTest.<Number, Integer>assignabilityTestWithTypeVariables();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
Back to top