Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 430 for One (0.11 sec)

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

        assertEquals(4, diff.evictionCount());
    
        assertEquals(new CacheStats(0, 0, 0, 0, 0, 0), one.minus(two));
      }
    
      public void testPlus() {
        CacheStats one = new CacheStats(11, 13, 15, 13, 11, 9);
        CacheStats two = new CacheStats(53, 47, 41, 39, 37, 35);
    
        CacheStats sum = two.plus(one);
        assertEquals(124, sum.requestCount());
        assertEquals(64, sum.hitCount());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun Jun 30 14:58:49 GMT 2019
    - 4.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

            new Builder<String, Integer>().put(Maps.immutableEntry("one", 1)).build();
        assertEquals(Arrays.asList(1), multimap.get("one"));
      }
    
      public void testBuilder_withImmutableEntryAndNullContents() {
        Builder<String, Integer> builder = new Builder<>();
        try {
          builder.put(Maps.immutableEntry("one", (Integer) null));
          fail();
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

          }
        },
        BUILDER_PUT_ONE_BY_ONE {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder();
            for (Object k : keys) {
              builder.put(k, "dummy value");
            }
            return builder.buildOrThrow();
          }
        },
        BUILDER_PUT_ENTRIES_ONE_BY_ONE {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java

     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.features.CollectionFeature;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ReserializedImmutableMapMapInterfaceTest.java

      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return SerializableTester.reserialize(ImmutableMap.of("one", 1, "two", 2, "three", 3));
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "minus one";
      }
    
      @Override
      protected Integer getValueNotInPopulatedMap() {
        return -1;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/RegularImmutableMapMapInterfaceTest.java

        return ImmutableMap.of();
      }
    
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        return ImmutableMap.of("one", 1, "two", 2, "three", 3);
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "minus one";
      }
    
      @Override
      protected Integer getValueNotInPopulatedMap() {
        return -1;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 09 02:18:08 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java

     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    import static com.google.common.collect.testing.features.CollectionSize.SEVERAL;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java

    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ITERATOR_REMOVE;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.testing.features.CollectionFeature;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java

    import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE;
    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    import static com.google.common.collect.testing.features.CollectionSize.SEVERAL;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SortedMultiset.java

      /**
       * Returns a view of this multiset restricted to the elements less than {@code upperBound},
       * optionally including {@code upperBound} itself. The returned multiset is a view of this
       * multiset, so changes to one will be reflected in the other. The returned multiset supports all
       * operations that this multiset supports.
       *
       * <p>The returned multiset will throw an {@link IllegalArgumentException} on attempts to add
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.5K bytes
    - Viewed (0)
Back to top