Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 317 for foo (0.13 sec)

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

        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateFromIterable() {
        Multiset<String> multiset = LinkedHashMultiset.create(Arrays.asList("foo", "bar", "foo"));
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testToString() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

                return true; // BAD!!
              }
    
              @Override
              public String get() {
                return "foo"; // BAD!!
              }
    
              @Override
              public String get(long time, TimeUnit unit) {
                return "foo"; // BAD!!
              }
    
              @Override
              public void addListener(Runnable runnable, Executor executor) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/HashBiMapTest.java

        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
        map.remove("bar");
        assertThat(map.entrySet())
            .containsExactly(Maps.immutableEntry("foo", 1), Maps.immutableEntry("quux", 3))
            .inOrder();
      }
    
      public void testInsertionOrderAfterRemoveLast() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/HashBiMapTest.java

        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
        map.remove("bar");
        assertThat(map.entrySet())
            .containsExactly(Maps.immutableEntry("foo", 1), Maps.immutableEntry("quux", 3))
            .inOrder();
      }
    
      public void testInsertionOrderAfterRemoveLast() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        multimap.put("google", 6);
        multimap.put("foo", 3);
        multimap.put("foo", 1);
        multimap.put("foo", 7);
        multimap.put("tree", 4);
        multimap.put("tree", 0);
        return multimap;
      }
    
      public void testToString() {
        SetMultimap<String, Integer> multimap = create();
        multimap.putAll("bar", Arrays.asList(3, 1, 2));
        multimap.putAll("foo", Arrays.asList(2, 3, 1, -1, 4));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

        unfiltered.put("foo", 55556);
        unfiltered.put("badkey", 1);
        unfiltered.put("foo", 1);
        Multimap<String, Integer> keyFiltered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE);
        Multimap<String, Integer> filtered = Multimaps.filterValues(keyFiltered, VALUE_PREDICATE);
        assertEquals(1, filtered.size());
        assertTrue(filtered.containsEntry("foo", 1));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/NewCustomTableTest.java

        return table;
      }
    
      public void testRowKeySetOrdering() {
        table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c');
        assertThat(table.rowKeySet()).containsExactly("foo", "bar").inOrder();
      }
    
      public void testRowOrdering() {
        table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c');
        assertThat(table.row("foo").keySet()).containsExactly(2, 3).inOrder();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        testDecodes(base32(), "MZXW6===", "foo"); // proper padding length
        testDecodes(base32(), "MZXW6====", "foo");
        testDecodes(base32(), "MZXW6=====", "foo");
      }
    
      public void testBase32AlternatePadding() {
        BaseEncoding enc = base32().withPadChar('~');
        testEncodingWithCasing(enc, "", "");
        testEncodingWithCasing(enc, "f", "MY~~~~~~");
        testEncodingWithCasing(enc, "fo", "MZXQ~~~~");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 24.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        HostAndPort hpNoPort1 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort2 = HostAndPort.fromString("foo::123");
        HostAndPort hpNoPort3 = HostAndPort.fromString("[foo::123]");
        HostAndPort hpNoPort4 = HostAndPort.fromHost("[foo::123]");
        HostAndPort hpNoPort5 = HostAndPort.fromHost("foo::123");
    
        HostAndPort hpWithPort1 = HostAndPort.fromParts("[foo::123]", 80);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

          return arithmetic.add(a, b);
        }
    
        @Override
        public String toString() {
          return arithmetic.toString();
        }
      }
    
      private interface ParameterTypesDifferent {
        void foo(
            String s,
            Runnable r,
            Number n,
            Iterable<?> it,
            boolean b,
            Equivalence<String> eq,
            Exception e,
            InputStream in,
            Comparable<?> c,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
Back to top